DR 09-0223 - WML: Structured Document Tags

Alex Brown alexb at griffinbrown.co.uk
Thu Mar 18 15:22:05 CET 2010


In the schema the content model is an unbounded choice, so:

  <w:sdt>
      <w:sdtPr>
        <w:alias w:val="foo"/>
        <w:alias w:val="foo"/>
        <w:citation/>
        <w:bibliography/>
        <w:date></w:date>
      </w:sdtPr>
    </w:sdt>

is valid, for example.

- Alex.


From: Shawn Villaron [mailto:shawnv at microsoft.com]
Sent: 18 March 2010 13:41
To: 'SC 34 WG4'
Subject: DR 09-0223 - WML: Structured Document Tags

This is in regards to the GB defect report.  Our proposed response is as follows.
DR 09-0223 - WML: Structured Document Tags
No change is needed.

The statement made in the defect report is incorrect. The schema specifies that an sdtPr element can only have a maximum of one type specified. Below is the definition of the complex type CT_SdtPr. The highlighted portion of the schema specifies that a structured document tag can only have a maximum of one type specified.

<xsd:complexType name="CT_SdtPr">
<xsd:choice maxOccurs="unbounded">
<xsd:element name="rPr" type="CT_RPr" minOccurs="0"/>
<xsd:element name="alias" type="CT_String" minOccurs="0"/>
<xsd:element name="label" type="CT_DecimalNumber" minOccurs="0"/>
<xsd:element name="tabIndex" type="CT_UnsignedDecimalNumber" minOccurs="0"/>
<xsd:element name="lock" type="CT_Lock" minOccurs="0"/>
<xsd:element name="placeholder" type="CT_Placeholder" minOccurs="0"/>
<xsd:element name="showingPlcHdr" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="dataBinding" type="CT_DataBinding" minOccurs="0"/>
<xsd:element name="temporary" type="CT_OnOff" minOccurs="0"/>
<xsd:element name="id" type="CT_DecimalNumber" minOccurs="0"/>
<xsd:element name="tag" type="CT_String" minOccurs="0"/>
<xsd:choice minOccurs="0" maxOccurs="1">
<xsd:element name="equation" type="CT_Empty"/>
<xsd:element name="comboBox" type="CT_SdtComboBox"/>
<xsd:element name="date" type="CT_SdtDate"/>
<xsd:element name="docPartObj" type="CT_SdtDocPart"/>
<xsd:element name="docPartList" type="CT_SdtDocPart"/>
<xsd:element name="dropDownList" type="CT_SdtDropDownList"/>
<xsd:element name="picture" type="CT_Empty"/>
<xsd:element name="richText" type="CT_Empty"/>
<xsd:element name="text" type="CT_SdtText"/>
<xsd:element name="citation" type="CT_Empty"/>
<xsd:element name="group" type="CT_Empty"/>
<xsd:element name="bibliography" type="CT_Empty"/>
</xsd:choice>
</xsd:choice>
</xsd: complexType >



______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.vse.cz/pipermail/sc34wg4/attachments/20100318/108257f4/attachment-0001.htm>


More information about the sc34wg4 mailing list