by Eric van der Vlist is published by O'Reilly & Associates (ISBN: 0596004214)
choice (in the context of a name-class) — Choice between name classes
element choice { ( attribute ns { text }?, attribute datatypeLibrary { xsd:anyURI }?, attribute * - (rng:* | local:*) { text }* ), ( ( element * - rng:* { ... }* ) & ( element name { ... } | element anyName { ... } | element nsName { ... } | element choice { ... } )+ ) } |
The choice name class makes a choice between several name classes: a name matches choice if, and only if, it matches at least one of the subname classes.
<element> <choice> <nsName ns="http://eric.van-der-vlist.com/ns/library"/> <nsName ns="http://eric.van-der-vlist.com/ns/person"/> </choice> <ref name="anything"/> </element> |
This attribute defines the default datatype library. The value is inherited. Note that although datatypeLibrary is allowed in choice, just as it is in other RELAX NG elements, it has no direct effect on choice itself or on the name class definitions that might be embedded.
This attribute defines the default namespace for the elements defined in a portion of schema. The value is inherited.
This text is released under the Free Software Foundation GFDL.