OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] Fwd: [katrina-dev] Looking for XML Schema advice

[ Lists Home | Date Index | Thread Index ]

> -----Original Message-----
> From: Jeff Rafter [mailto:lists@jeffrafter.com] 
> Sent: Tuesday, September 06, 2005 9:15 PM
> To: Bill Humphries
> Cc: xml-dev@lists.xml.org
> Subject: Re: [xml-dev] Fwd: [katrina-dev] Looking for XML 
> Schema advice
> 
> >> Is there any other way to allow an element to have 
> subelements in any 
> >> order, with one of those elements occurring possibly many times?
> >> If it isn't possible to express this in XML Schema, that would be 
> >> good to know too.
> >>
> >> Thanks for your help.
> 
> Hi Bill,
> 
> <xs:choice maxOccurs="unbounded">
>    [elements]
> </xs:choice>
> 
> Is your only option in XML Schema. 

Is it possible you meant <xs:sequence> rather than <xs:choice>? I don't
believe the question mentioned choice.

Joe 

Joseph Chiusano
Booz Allen Hamilton
O: 703-902-6923
C: 202-251-0731
Visit us online@ http://www.boozallen.com
 

> In RelaxNG you can use an 
> interleave to accomplish exactly what you want-- but in XML 
> Schema the xs:all element is limited exactly as you/Ping have 
> discovered.
> 
> All the best,
> Jeff Rafter
> 
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org 
> <http://www.xml.org>, an initiative of OASIS 
> <http://www.oasis-open.org>
> 
> The list archives are at http://lists.xml.org/archives/xml-dev/
> 
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://www.oasis-open.org/mlmanage/index.php>
> 
> 




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS