Name

name — Name class for a single name

Synopsis

element name
{
 (
 attribute ns { text }?,
 attribute datatypeLibrary { xsd:anyURI }?,
 attribute * - (rng:* | local:*) { text }*
 ),
 xsd:QName
}

Class

name-class

May be included in

attribute, choice, element, except

Compact syntax equivalent

name

Description

The name name class defines a class with a single name.

Example

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

Attributes

datatypeLibrary

This attribute defines the default datatype library. The value is inherited.

ns

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

Get RELAX NG now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.