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

Chris Rae Chris.Rae at microsoft.com
Thu Nov 18 01:55:39 CET 2010


It looks from http://www.w3schools.com/schema/el_all.asp as though it does, but I'm not going to get into a schema language fight with Murata-san, so I'll be happy to buckle under even the slightest of pressure.

Chris

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

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

Yes, please.

I don't think that <xsd:all minOccurs="0"> does the job.  It means all or nothing, right?

How about

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

?

Cheers,
Makoto



More information about the sc34wg4 mailing list