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")}}
Get RELAX NG now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.