[relaxng-user] Re: Interleaving optional elements
Erik Bruchez
erik at bruchez.org
Thu Apr 22 18:32:52 ICT 2004
Thanks to everybody for the enlightening replies!
-Erik
Erik Bruchez wrote:
> 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
More information about the relaxng-user
mailing list