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

parent — Reference to a named pattern from the parent grammar

Class:

pattern

Synopsis

"parent" identifier

May be included in:

(pattern), attribute, datatypeName param exceptPattern, element, list, mixed, pattern&pattern, pattern*, pattern+, pattern,pattern, pattern?, pattern|pattern.

XML syntax equivalent:

parentRef

Description:

The parent pattern is a reference to a named pattern belonging to the parent grammar, the grammar in which the current grammar is included. The scope of named patterns is usually limited to the grammar in which they are defined. The parent pattern provides a way to extend this scope and refer to named patterns defined in the parent grammar.

Example:

  born-element = parent born-element
 
 start =
    attribute id { parent id-content },
    attribute available { parent available-content },
    element isbn { parent isbn-content },
    element title { parent title-content },
    element author { parent author-content }*,
    element character { parent character-content }*

      

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.