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


Name

pattern,pattern — pattern,pattern pattern

Synopsis

pattern ("," 
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

group

Description

The group pattern defines an ordered group of subpatterns (note that when attribute patterns are included in such a group, their order can't be guaranteed). Any number of patterns may be combined through the , operator using this construct; however different operators (,| &) can't be mixed at the same level.

Example

element author {
 attribute id {text},
 element name {text},
 element born {text},
 element died {text}?}*

element lib:title { attribute xml:lang { text }, text }

attribute dimensions {list {token, token, token, ("inches"|"cm"|"mm")}}

This text is released under the Free Software Foundation GFDL.