to the main page about the tutorial  THE XML REVOLUTION  -  TECHNOLOGIES FOR THE FUTURE WEB back up next

Rules

- a closer look at the central DSD 2.0 construct

Example:

<if><element name="r:preparation"/>
  <declare><contents>
    <repeat><element name="r:step"/></repeat>
  </contents></declare>
</if>

Rules can be:

(In addition, there are unique and pointer rules for generalized IDs/IDREFs.)

Rules can be defined (given an ID for reference) to support modularity, as e.g. ANYCONTENT in the full example.


A document is validated through a top-down process, checking each element in turn. For each element,

The root element must match the root attribute of the schema element.

back COPYRIGHT © 2000-2003 ANDERS MØLLER & MICHAEL I. SCHWARTZBACH next