[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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
Re: Ignore Order while validating XSD

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@l...@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 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.