W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2009

Re: Ignore Order while validating XSD

From: Philip Aker <philip.aker@shaw.ca>
Date: Mon, 26 Jan 2009 01:11:45 -0800
Message-Id: <DA24E23C-2093-4946-8329-877AD94421E9@shaw.ca>
To: xmlschema-dev@w3.org

On 2009-01-25, at 16:37:55, C. M. Sperberg-McQueen wrote:

> In a conventional regular expression, you might write

> (b|c|x)*, a, (a|b|c|x)*

<xsd:complexType name="brzozowski">
  <xsd:array pattern="(b|c|x)*, a{2}, (a|b|c|x)*">
   <xsd:element ref="my:a"/>
   <xsd:element ref="my:b"/>
   <xsd:element ref="my:c"/>
   <xsd:element ref="my:x"/>
  </xsd:array>
</xsd:complexType>

Wish it could be that easy.


Philip Aker
echo astwta@lvpc.dslh@nl | tr a-z@. p-za-o.@

Democracy: Two wolves and a sheep voting on lunch.
Received on Monday, 26 January 2009 09:20:18 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:50 UTC