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.
div (in the context of a grammar-content) — Division (in the context of a grammar)
grammar-content
element div { ( attribute ns { text }?, attribute datatypeLibrary { xsd:anyURI }?, attribute * - (rng:* | local:*) { text }* ), ( ( element * - rng:* { ... }* ) & ( ( element start { ... } ) | ( element define { ... } ) | element div { ... } | element include { ... } )* ) } |
div, grammar.
div
The div element is provided to define logical divisions in RELAX NG schemas. It has no effect on validation. Its purpose is to define a group of definitions within a grammar which may be annotated as a whole.
In the context of a grammar, the content of a div element is the same as the content of a grammar (this means that div elements may be embedded in other div elements.
<grammar xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns="http://relaxng.org/ns/structure/1.0"> .../... <div> <xhtml:p>The content of the book element has been split in two named patterns:</xhtml:p> <define name="book-start"> <attribute name="id"/> <ref name="isbn-element"/> <ref name="title-element"/> <zeroOrMore> <ref name="author-element"/> </zeroOrMore> </define> <define name="book-end"> <zeroOrMore> <ref name="author-element"/> </zeroOrMore> <zeroOrMore> <ref name="character-element"/> </zeroOrMore> <attribute name="available"/> </define> </div> .../... </grammar> |
The datatypeLibrary attribute defines the default datatype library. The value of datatypeLibrary is inherited.
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.