by Eric van der Vlist is published by O'Reilly & Associates (ISBN: 0596004214)


Name

ref — Reference to a named pattern

Synopsis

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

Class

pattern

May be included in

attribute, choice, define, element, except, group, interleave, list, mixed, oneOrMore, optional, start, zeroOrMore

Compact syntax equivalent

Name without a colon

Description

The ref pattern defines a reference to a named pattern defined in the current grammar.

Example

<element name="book">
 <ref name="book-start"/>
 <ref name="book-end"/>
</element>
 
  <element name="library">
   <oneOrMore>
    <ref name="book-element"/>
   </oneOrMore>
  </element>

Attributes

datatypeLibrary

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

name

This attribute specifies the name of the named pattern that is referenced.

ns

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.