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.
Now we have all the components we need to convert the full RELAX NG schema from the previous chapter into its compact syntax form:
element library { element book { attribute id { text }, attribute available { text }, element isbn { text }, element title { attribute xml:lang { text }, text }, element author { attribute id { text }, element name { text }, element born { text }?, element died { text }? }+, element character { attribute id { text }, element name { text }, element born { text }?, element qualification { text } }* }+ } |
In the following chapters, for each example we will give both the XML and the compact syntax.Thus, we will have plenty of opportunities to get familiarized with both.
Note | |
---|---|
Don't get confused by the similarities in name between simple form of a RELAX NG schema, described in Chapter 15: Simplification And Restrictions, and the compact syntax. These two notions work at different levels: the simple form is the result of simplifications performed internally by RELAX NG processors on the data model of the schema, while the compact syntax is a different way to represent or serialize a full RELAX NG document. The data models resulting from the parsing of a RELAX NG full schema are thus the same whether the schema has been written using the XML or the compact syntax, and it will be simplified into the same simple schema. |
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.