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

start — Start of a grammar

Class:

Synopsis


start               ::= "start" 
assignMethod 
pattern

May be included in:

div, grammar, include.

XML syntax equivalent:

start

Description:

The start pattern defines the "start" of a grammar. When this grammar is used to validate a complete document, the start pattern defines which elements may be used as the document (root) element. When this grammar is embedded within another grammar, the start pattern describes which pattern should be applied at the location where the grammar is embedded. Like named pattern definitions, start patterns may be combined by choice or interleave and redefined when they are included in include patterns.

The combination is defined by the assignMethod which may take the values: " =" (definition), " &=" (combination by interleave), or " |=" (combination by choice).

Example:

  start = element library {
   book-element +
  }
 
  start |= book-element
      

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.