|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: RelaxNG problem about section 7.4. Restrictions oninterlea
> However, both the Relax NG tutorial and the test suite exhibit
> RelaxNG schemas like
> -----
> <interleave>
> <text/>
> <optional>
> <element name="span">
> <attribute name="class">
> <value>givenName</value>
> </attribute>
> <text/>
> </element>
> </optional>
> <optional>
> <element name="span">
> <attribute name="class">
> <value>familyName</value>
> </attribute>
> <text/>
> </element>
> </optional>
> </interleave>
> -----
That's a bug. See
http://www.oasis-open.org/committees/relax-ng/errata/tutorial-errata.html
> and
> -----
> <element xmlns="http://relaxng.org/ns/structure/1.0" name="foo">
> <mixed>
> <element name="bar">
> <empty/>
> </element>
> <element name="bar">
> <empty/>
> </element>
> <element name="bar">
> <empty/>
> </element>
> </mixed>
> </element>
> -----
That's correct, because it's equivalent (per 4.12) to
<element xmlns="http://relaxng.org/ns/structure/1.0" name="foo">
<mixed>
<group>
<element name="bar">
<empty/>
</element>
<element name="bar">
<empty/>
</element>
<element name="bar">
<empty/>
</element>
</group>
</mixed>
</element>
James
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








