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

externalRef — Reference to an external schema

Class:

pattern

Synopsis

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

May be included in:

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

Compact syntax equivalent:

external

Description:

The externalRef pattern is a reference to an external schema. It has the same effect as replacing the externalRef pattern with the external schema, which is treated as a pattern.

Example:

      <element name="book">
        <externalRef href="book.rng"/>
      </element>
      
      <element xmlns="http://relaxng.org/ns/structure/1.0" name="university">
       <element name="name">
        <text/>
       </element>
       <externalRef href="flat.rng"/>
      </element>

      

Attributes:

datatypeLibrary

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

href

The href attribute defines the location of the external schema.

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.