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] <xsd:sequence>: whats the advantage?

[ Lists Home | Date Index | Thread Index ]
  • To: "Baisak, Ranjan" <ranjan_baisak@mentor.com>, <xml-dev@lists.xml.org>
  • Subject: RE: [xml-dev] <xsd:sequence>: whats the advantage?
  • From: "Klotz, Leigh" <Leigh.Klotz@xerox.com>
  • Date: Tue, 3 May 2005 10:28:01 -0700
  • Thread-index: AcU65PXnLFcsx1+WQ5mT8HMr5Jxr9gU3IuJwABB90uA=
  • Thread-topic: [xml-dev] <xsd:sequence>: whats the advantage?

Do you mean why use xsd:sequence instead of xsd:all or xsd:any?
There are some constraints that you can express (in XML Schema) in
sequences that you can't express in the unordered lists, such as certain
mixings of required and optional elements.   That's why the <title/>
element of XHTML is required to be first under <head/> -- it's required,
and the remaining elements are optional.  

-----Original Message-----
From: Baisak, Ranjan [mailto:ranjan_baisak@mentor.com] 
Sent: Tuesday, May 03, 2005 2:24 AM
To: xml-dev@lists.xml.org
Subject: [xml-dev] <xsd:sequence>: whats the advantage?

Is there any advantage of using <xsd:sequence> in schema except ordering
of elements?



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

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