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


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] Use xsd to specify multiple instances of existing element

> The conditional way does not seem to meet Ian's order constraint. So I think
> the assertions are the
> only mechanism for XSD 1.1 for Ian's particular problem.

unless you can do:

<xs:alternative type="element-that-must-be-first" test="position() eq 1"/>
<xs:alternative type="element-that-must-be-second" test="position() eq 2"/>
<xs:alternative type="rest" test="position() gt 2"/>

I don't know if that's possible....

Andrew Welch
Kernow: http://kernowforsaxon.sf.net/

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]

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

Copyright 1993-2007 XML.org. This site is hosted by OASIS