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: <xml-dev@lists.xml.org>
  • Subject: Re: [xml-dev] <xsd:sequence>: whats the advantage?
  • From: "Bryce K. Nielsen" <bryce@sysonyx.com>
  • Date: Tue, 3 May 2005 08:41:29 -0600
  • References: <200505030349859.SM02832@mail.oasis-open.org>

> > Is there any advantage of using <xsd:sequence> in schema
> > except ordering
> > of elements?
>
> This is a bit like asking whether there is any advantage in using
for-loops
> in Java, except to do iteration.
>
> Michael Kay
> http://www.saxonica.com/
>

I think he was trying to compare sequence vs. the other two constructs, the
pros/cons of the different constructs. To answer his question, that is the
point of xsd:sequence nodes, the enforcement of ordering. It's also the
typical default construct used for elements, since xsd:choice nodes or for,
well, choosing between one node of the group and xsd:all nodes have other
restrictions that most people have a hard time working around.

Bryce K. Nielsen
SysOnyx, Inc. (www.sysonyx.com)
Read the Genesis of xmlHack, the Simple XML Editor
http://www.sysonyx.com/xml-editor





 

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

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