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.
Sometimes documents need to include specific values for particular content. The value pattern can be used to check fixed values such as version identifiers of XML vocabularies. The syntax and semantics of the value pattern are straightforward: the pattern will only be matched if the value found in the instance document matches the value specified in the value pattern. For example, if we wanted a highly specialized vocabulary to describe the book with the ISBN number "0836217462" and only this specific book, we could replace the text pattern with a value pattern and write:
<element name="isbn"> <value>0836217462</value> </element> |
or, using the compact syntax:
element isbn {"0836217462"} |
and the schema would validate a book with a ISBN number equal to "0836217462" and refuse any other ISBN number.
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.