by Eric van der Vlist is published by O'Reilly & Associates (ISBN: 0596004214)


Name

element — Pattern matching an element

Synopsis

"element" nameClass "{" 
pattern "}"

Restrictions

pattern

May be included in

(pattern), attribute, datatypeName param exceptPattern, element, list, mixed, pattern&pattern, pattern*, pattern+, pattern,pattern, pattern?, pattern|pattern

XML syntax equivalent

element

Description

The element pattern matches an element. The name of the element is defined by a nameClass, which may be either a single name or name class.

Example

element isbn { text }
element hr:born { text }
element title { attribute xml:lang { text }, text }
element * - (local:* | lib:* | hr:*) { anything }

This text is released under the Free Software Foundation GFDL.