Lists Home |
Date Index |
- To: "Baisak, Ranjan" <firstname.lastname@example.org>, <email@example.com>
- 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.
From: Baisak, Ranjan [mailto:firstname.lastname@example.org]
Sent: Tuesday, May 03, 2005 2:24 AM
Subject: [xml-dev] <xsd:sequence>: whats the advantage?
Is there any advantage of using <xsd:sequence> in schema except ordering