14.3. Constraining Simple Content

Most of this chapter discusses the syntax of a regular expression. The link to XML schemas is that either a simple type or a complex type constrained to simple content may specify a regular expression. The value of a pattern constraining facet is a regular expression. Note that the pattern constraining facet applies only to certain base types (see the discussion on built-in datatypes in Chapter 12).

Caution

The interaction between two pattern constraining facets specified by the same simple type is different than the interaction between two pattern constraining facets when one is specified by the base type and one by the derived type. See this section and Section 14.3 for clarification.

The remainder of this ...

Get XML Schema Complete Reference, The 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.