DR 09-0305 - WML, Glossary Document: Unspecified behavior for repeated child elements

Chris Rae Chris.Rae at microsoft.com
Wed Nov 17 23:39:00 CET 2010


Oh dear. Well spotted. I think this can be resolved by changing:

<xsd:all>

To:

<xsd:all minOccurs="0">

But I'd agree that it needs to be changed. Shall I suggest to Ecma that we submit a DR?

Chris

-----Original Message-----
From: MURATA Makoto (FAMILY Given) [mailto:eb2m-mrt at asahi-net.or.jp] 
Sent: 16 November 2010 18:51
To: Shawn Villaron
Cc: 'SC 34 WG4'
Subject: Re: DR 09-0305 - WML, Glossary Document: Unspecified behavior for repeated child elements

While I was creating a RELAX NG schema for this DR, I find that the propsoed XSD schema fragment mandates every of name, style, category, types, behaviors, description, and guid.  But glossay documents created
by MS Office 2007 do not have all of them.    Should we add minOccurs="0" 
for each of the xsd:element elements?

> <xsd:complexType name="CT_DocPartPr">
> <xsd:all>
> <xsd:element name="name" type="CT_DocPartName"/> <xsd:element 
> name="style" type="CT_String"/> <xsd:element name="category" 
> type="CT_DocPartCategory"/> <xsd:element name="types" 
> type="CT_DocPartTypes"/> <xsd:element name="behaviors" 
> type="CT_DocPartBehaviors"/> <xsd:element name="description" 
> type="CT_String"/> <xsd:element name="guid" type="CT_Guid"/> 
> </xsd:all>
> 
> </xsd:complexType>

Cheers,
Makoto



More information about the sc34wg4 mailing list