Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Ignore Order while validating XSD

From: "Pete Cordell" <petexmldev@---------.--->
To: "Philip Aker" <philip.aker@----.-->, <xmlschema-dev@--.--->
Date: 1/26/2009 12:54:00 PM
> Original Message From: "Philip Aker"

As you may know, in XSD 1.1 the constraints on xs:all have been relaxed so 
you will actually be able to do:

  <xs:complexType>
    <xs:all>
      <xs:element name="a" maxOccurs="unbounded"/>
      <xs:element name="b" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="c" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="x" minOccurs="0" maxOccurs="unbounded"/>
    </xs:choice>
  </xs:complexType>

XSD1.1 hasn't been released yet, but it shows things are moving in a 
suitable direction.

HTH,

Pete Cordell
Codalogic Ltd
Interface XML to C++ the easy way using XML C++
data binding to convert XSD schemas to C++ classes.
Visit http://codalogic.com/lmx/ for more info

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



From philip.aker@s... Mon Jan 26 13:15:09 2009
Received: from bart.w3.org ([128.30.52.63])
	by 


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent