DR 09-0219 - WML: Custom XML attribute

Shawn Villaron shawnv at microsoft.com
Wed Mar 24 05:05:16 CET 2010


Here is our response to this defect report.  It is the same solution to previously discussed defect reports.

DR 09-0219 - WML: Custom XML attribute
Agreed.
The following changes will be made to both transitional and strict:

*         Create a new simple type, ST_XmlName, with restriction set to xs:NCName

*         The attributes name (attr @name (17.5.1.1) and attr @name (17.5.1.2)) and element (customXml @element (17.5.1.3), customXml @element (17.5.1.4), customXml @element (17.5.1.5), customXml @element (17.5.1.6), and smartTag @element(17.5.1.9)) will be restricted to ST_XmlName instead of ST_String
In summary, this change affects the following elements:

*         attr @name (17.5.1.1)

*         attr @name (17.5.1.2)

*         customXml @element (17.5.1.3)

*         customXml @element (17.5.1.4)

*         customXml @element (17.5.1.5)

*         customXml @element (17.5.1.6)

*         smartTag @element(17.5.1.9)
New subsection needs to be added to Part 1 Section 22.9.2:
22.9.2.X                ST_XmlName (XML Name)
This simple type specifies that its contents contain an XML non-colonized name (NCName).
[Example: Consider the following WordprocessingML fragment for the properties of a single custom XML element:
<w:customXmlPr>
<w:attr w:name="company"  w:uri="http://schemas.openxmlformats.org/2006/example" ... />
</w: customXmlPr>
The attr element specifies that the NCName associated with the attribute name shall be company. end example]
This simple type's contents are a restriction of the W3C XML Schema NCName datatype.


The following changes will be made to both transitional and strict:

*         Create a new simple type, ST_Uri, with restriction set to xs:anyURI.

*         The attribute uri (attr @uri (17.5.1.1), attr @uri (17.5.1.2), customXml @uri (17.5.1.3), customXml @uri (17.5.1.4), customXml @uri (17.5.1.5), customXml @uri (17.5.1.6), smartTag @uri(17.5.1.9) , and schema @uri (23.2.1)) will be restricted to ST_Uri instead of ST_String
In summary, this change affects the following elements:

*         attr @uri (17.5.1.1)

*         attr @uri (17.5.1.2)

*         customXml @uri (17.5.1.3)

*         customXml @uri (17.5.1.4)

*         customXml @uri (17.5.1.5)

*         customXml @uri (17.5.1.6)

*         smartTag @uri(17.5.1.9)

*         schema @uri (23.2.1)
New subsection needs to be added to Part 1 Section 22.9.2:
22.9.2.X                ST_Uri (Uniform Resource Identifier Reference)
This simple type specifies that its contents contain a Uniform Resource Identifier Reference (URI).
[Example: Consider the following WordprocessingML fragment for the properties of a single custom XML element:
<w:customXmlPr>
<w:attr w:name="company"  w:uri="http://schemas.openxmlformats.org/2006/example" ... />
</w: customXmlPr>
The attr element specifies that the URI associated with the attribute name whose value is company shall be http://schemas.openxmlformats.org/2006/example. end example]
This simple type's contents are a restriction of the W3C XML Schema anyURI datatype.

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


More information about the sc34wg4 mailing list