RE: Interleaving optional elements

"Tor Helland" <[email protected]> Wed, 21 Apr 2004 15:56:13 +0200
Newsgroups gmane.text.xml.relaxng.general
Organization helland.org
Message-ID <[email protected]>
> XMLBuddy has no problem with it. Try to validate it with Jing, to check if
it's simply a validator difference.

Awfully sorry, XMLBuddy not to blame, I made a mistake :-(

-tor

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Erik Bruchez
Sent: Tuesday, April 20, 2004 3:38 AM
To: [email protected]
Subject: [relaxng-user] Interleaving optional elements

All,

Is the following Relax NG fragment supposed to work? I don't see any reason
why it shouldn't but MSV gives me the following error:

   more than one branch of <interleave> accepts the element "property"

<interleave>
   <optional>
       <element name="property">
           <attribute name="name">
               <value>name1</value>
           </attribute>
           <attribute name="value">
               <data type="anyURI"/>
           </attribute>
       </element>
   </optional>
   <optional>
       <element name="property">
           <attribute name="name">
               <value>name2</value>
           </attribute>
           <attribute name="value">
               <data type="integer"/>
           </attribute>
       </element>
   </optional>
   <optional>
       <element name="property">
           <attribute name="name">
               <value>name3</value>
           </attribute>
           <attribute name="value">
               <data type="string"/>
           </attribute>
       </element>
   </optional>
</interleave>

Thanks,

-Erik
_______________________________________________
relaxng-user mailing list
[email protected]
http://relaxng.org/mailman/listinfo/relaxng-user