ZVON > Tutorials > XML Schema and Relax NG Tutorial
Index
Contents > Importing and combining multiple schemas

Importing and combining multiple schemas

Importing schema and processContents "strict"

If we use "any" or "anyAttribute" elements and set their attribute "processContents" to value "strict", those elements/attributes, which are represented by the "any/anyAttribute" pattern must: have definition and must be valid with respect to that definition 3.10.1 The Wildcard Schema Component .

...
Importing schema and processContents "lax"

Let's say we use "any" or "anyAttribute" elements and set their attribute "processContents" to value "lax". Then those elements/attributes, which are represented by the "any/anyAttribute" pattern are validated as follows: if there is a definition for them, they must be valid with respect to that definition. If there is no definition, never mind. 3.10.1 The Wildcard Schema Component

...
Importing schema and processContents "skip"

Let's say we use "any" or "anyAttribute" elements and set their attribute "processContents" to value "skip". Then there is only one requirement for those elements/attributes, which are represented by the "any/anyAttribute" pattern: to be well-formed. 3.10.1 The Wildcard Schema Component

...
Redefine element

In this example, we redefine the type "myString" from an arbitrary string to a string which cannot be more than 5 characters long. We will do this using redefine element.

...