Organization of This Book
- Chapter 1
This chapter explores XML validation, what schema languages do, and what makes RELAX NG unique.
- Chapter 2
This chapter introduces the background of RELAX NG itself and explores the notion of a pattern, the elementary building block on which the whole language is built.
- Chapter 3
This chapter builds, step by step, a first complete RELAX NG schema using XML syntax.
- Chapter 4
XML syntax is very useful, but it is also verbose. This chapter introduces an alternative, a compact (non-XML) syntax.
- Chapter 5
Chapter 3s schema followed the structure of an instance document to create what is called a Russian doll design. In this chapter, I show how named patterns can limit the depth of a schema, provide reusability, and mimic DTD structures.
- Chapter 6
Up to now, I’ve described only ordered sequences of elements. This chapter introduces new compositors for defining choices between patterns.
- Chapter 7
This chapter introduces the mechanisms that constrain text values and the two datatypes (string and token) built into RELAX NG.
- Chapter 8
This chapter describes external datatype libraries that may be used in RELAX NG schemas, and spends some time exploring the two datatype libraries that are most frequently used: the W3C XML Schema library and the DTD compatibility library.
- Chapter 9
This chapter explores one of the most powerful aspects of datatypes, the
patternfacet of the W3C XML Schema datatype library, and its particular flavor of regular expressions. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access