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] RelaxNG problem about section 7.4. Restrictions oninterlea

[ Lists Home | Date Index | Thread Index ]


> 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







 

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

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