DR 09-0212: WML: Custom XML and Smart Tags

Shawn Villaron shawnv at microsoft.com
Fri May 29 16:23:07 CEST 2009


Nature of the Defect:
The w:element attribute is permitted by the schema (and by the normative text) to contain a string that does not constitute a valid XML Name. Thus, the standard permits custom tags implying tagged text that cannot be processed using conformant XML processors.


Here is the proposed response for this DR:

In order to bring the contents of this attribute in line with valid XML names, we need to restrict it to the NCName syntax and have a maximum length of 255 characters. This change should also be applied to the names of attribute values, for the reasons specified.

The exact changes are as follows:

In wml.xsd, in complex types CT_CustomXmlRun, CT_SmartTagRun, CT_CustomXmlBlock, CT_CustomXmlRow, and CT_CustomXmlCell:

<xsd:attribute name="element" type="s:ST_Strings:ST_XmlName" use="required"/>

In shared-simpleTypes.xsd:

<xsd:simpleType name="ST_XmlName">
       <xsd:restriction base="xsd:NCName">
              <xsd:minLength value="1"/>
              <xsd:maxLength value="255"/>
       </xsd:restriction>
</xsd:simpleType>
I've like to suggest that we move this to LAST CALL.

shawn

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.vse.cz/pipermail/sc34wg4/attachments/20090529/b5bbd3a1/attachment.htm>


More information about the sc34wg4 mailing list