by Eric van der Vlist is published by O'Reilly & Associates (ISBN: 0596004214)


Constraining Text Values

Table of Contents

7.1. Fixed Values
7.2. Co-Occurrence Constraints
7.3. Enumerations
7.4. Whitespace and RELAX NG Native Datatypes
7.5. Using String Datatypes in Attribute Values
7.6. When to Use String Datatypes
7.7. Using Different Types in Each Value
7.8. Exclusions
7.9. Lists
7.10. Data Versus Text

RELAX NG focuses primarily on the validation of the structures of XML documents, rather than on validation of the values placed within those structures. Despite RELAX NG's structure-centric approach, it includes simple and efficient support for values, enumerations, lists and whitespace processing, the subject of this chapter. (Developers who need more than this simple support may use external libraries, the subject of the next two chapters.)


This text is released under the Free Software Foundation GFDL.