NOTE:
These slides have not been updated since 2003. They have been superseded by the book
Anders Møller and Michael Schwartzbach, February 2006 |
THE XML REVOLUTION - TECHNOLOGIES FOR THE FUTURE WEB |
Example:
<or> <and> <attribute name="a"><stringtype ref="b"/></attribute> <ancestor><element name="p:c"><attribute name="d"/></element></ancestor> </and> <contents> <sequence><element name="p:e"/><element name="p:f"/></sequence> </contents> </or> |
means: "either the current element has an a attribute with a b value and also a c ancestor element with a d attribute, or - if only looking at e and f elements - its contents consist of one e element followed by one f element (where the elements use the namespace selected by the p prefix)."
Boolean expressions are used both as conditions in conditional constraints (if) and as requirements (in require).
As with the other syntactic categories, boolean expressions can be defined for modularity.
COPYRIGHT © 2000-2003 ANDERS MØLLER & MICHAEL I. SCHWARTZBACH |