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

nsName — Name class for any name in a namespace

Class:

name-class

Synopsis

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

May be included in:

attribute, choice, element, except.

Compact syntax equivalent:

nsName exceptNameClass

Description:

The nsName name class allows any name in a specific namespace.

Restrictions:

Within the scope of an element, the name classes of attributes cannot overlap. The same restriction applies to name classes of elements when these elements are combined by interleave. It is impossible to use nsName to produce empty name classes by including nsName in an except name class included in another nsName.

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>

 <element>
   <nsName ns="http://eric.van-der-vlist.com/ns/person"/>
     <except>
       <name>lib:name</name>
       <name>hr:name</name>
     <except>
   </nsName>
   <ref name="anything"/>
 </element>

			

Attributes:

datatypeLibrary

The datatypeLibrary attribute defines the default datatype library. The value of datatypeLibrary is inherited.

ns

The ns attribute defines the default namespace for the elements defined in a portion of a 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.