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

Chris Rae Chris.Rae at microsoft.com
Thu Nov 18 20:55:56 CET 2010


Fair enough. I'll suggest this as a DR to Ecma.

Chris

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

> 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.

Just in case.

<foo >
  <ba1></ba1>
</foo>

is not valid against 

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="foo">
    <xs:complexType>
      <xs:all minOccurs="0">
        <xs:element name="ba1" type="xs:string"/>
        <xs:element name="ba2" type="xs:string"/>
      </xs:all>
    </xs:complexType>
  </xs:element>
</xs:schema>


Cheers,
Makoto



More information about the sc34wg4 mailing list