Glossary

A

ambiguous

A pattern is ambiguous when a fragment of an instance document can be valid against using several alternatives in its choice patterns. RELAX NG allows ambiguous patterns, but they can be a problem for annotation and datatype assignment.

C

chameleon design

Specifying a namespace in include, externalRef, or parentRef to give a namespace to grammars or patterns defined without a namespace is known as chameleon design, because the imported grammar or pattern takes on the new namespace like a chameleon takes on the color of the environment in which it is placed.

character class

In a regular expression, a character class is an atom that matches a set of characters. Character classes may be classical Perl character classes, Unicode character classes, or user-defined character classes.

classical Perl character class

A set of character classes designated by a single letter, for which upper- and lowercases of the same letter are complementary (for instance, \d is all the decimal digits, and \D is all the characters that aren’t decimal digits).

compositor

A compositor is a pattern that can be used to combine other patterns. RELAX NG has three basic compositors: group, choice, and interleave. A fourth compositor, mixed, is a shortcut for interleave with an embedded text pattern.

content model

A description of the structure of child elements and text nodes (independent of attributes). The content model is simple when there is a text node but no elements, complex when there are element ...

Get RELAX NG now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.