[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: [Fwd: Question about complexType with unordered child elementswithat least one child element]
Michael Fitzgerald wrote: > > My guess below. Jing does not complain. But it also doesn't complain about > multiple instances of optional children or zero children of <whatever>, > perhaps only because Jing is not reporting an error on non-matches? I > believe the syntax 'says' what you want it to say, nonetheless. -Mike Well, I gave it a try before posting my message ;=) and since Jing was not reporting an error on multiple instances, I have assumed that the meaning of the construct was "one or more unordered sequence of these optional elements" and not "one unordered sequence of these optional elements with at least one of them". Eric > <grammar xmlns="http://relaxng.org/ns/structure/0.9" > datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"> > > <start> > <element name="whatever"> > <ref name="ApplicationRequest"/> > </element> > </start> > > <define name="ApplicationRequest"> > <interleave> > <oneOrMore> > <optional> > <element name="PermissionRequestSet"> > <data type="string"/> > </element> > </optional> > <optional> > <element name="LocationRequestSet"> > <data type="string"/> > </element> > </optional> > <optional> > <element name="MapRequestSet"> > <data type="string"/> > </element> > </optional> > <optional> > <element name="InfoRequestSet"> > <data type="string"/> > </element> > </optional> > <optional> > <element name="GeoCodeRequestSet"> > <ref name="GeoCodeRequestSet"/> > </element> > </optional> > <optional> > <element name="GeoItemsRequestSet"> > <data type="string"/> > </element> > </optional> > <optional> > <element name="RouteRequestSet"> > <data type="string"/> > </element> > </optional> > </oneOrMore> > </interleave> > </define> > > <define name="GeoCodeRequestSet"> > <element name="something"> > <text/> > </element> > </define> > > </grammar> > > -Mike > -- Pour y voir plus clair dans la nebuleuse XML... http://dyomedea.com/formation/ ------------------------------------------------------------------------ Eric van der Vlist http://xmlfr.org http://dyomedea.com http://xsltunit.org http://4xt.org http://examplotron.org ------------------------------------------------------------------------
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC