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

empty — Empty content

Class:

pattern

Synopsis

element empty
{
   (
      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:

empty

Description:

The empty patterns are used to define elements which are empty, i.e. which have no child elements, text, or attributes. Note that it is mandatory to use this pattern explicitly in such cases - the simpler-looking form of <element name="foo"/> is forbidden. There is no such thing as empty attributes. An attribute such as foo="" is considered as having a value which is the empty string rather than be considered as being empty, i.e. having no value. Therefore, empty only applies to elements.

Example:

      <element name="pageBreak">
        <empty/>
      </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 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.