RELAX NG by Eric van der Vlist will be published by O'Reilly & Associates (ISBN: 0596004214)

You are welcome to use our annotation system to give your feedback.


Name

choice (in the context of a name-class) — Choice between name classes

Class:

name-class

Synopsis

element choice
{
   (
      attribute ns { text }?,
      attribute datatypeLibrary { xsd:anyURI }?,
      attribute * - (rng:* | local:*) { text }*
   ),
   (
      ( element * - rng:* { ... }* )
    & (
         element name { ... }
       | element anyName { ... }
       | element nsName { ... }
       | element choice { ... }
      )+
   )
}

May be included in:

attribute, choice, element, except.

Compact syntax equivalent:

nameClass|nameClass

Description:

The choice name class makes a choice between several name classes: a name will match choice if and only if it matches at least one of the sub-name classes.

Example:

 <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>
      

Attributes:

datatypeLibrary

The datatypeLibrary attribute defines the default datatype library. The value of datatypeLibrary 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 nor on the name class definitions which might be embedded.

ns

The ns attribute defines the default namespace for the elements defined in a portion of schema. The value of ns is inherited.


You are welcome to use our annotation system to give your feedback.
[Annotations for this page]
All text is copyright Eric van der Vlist, Dyomedea. During development, I give permission for non-commercial copying for educational and review purposes. After publication, all text will be released under the Free Software Foundation GFDL.