Name
pattern* —
zeroOrMore
pattern
Synopsis
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
zeroOrMore
Description
A pattern qualified as zeroOrMore
must be matched
zero or more times (i.e., any number of times).
Restrictions
The pattern*
pattern can’t contain
attribute definitions.
Example
element author { attribute id {text}, element name {text}, element born {text}, element died {text}?}* book-element = element book { attribute id {text}, attribute available {text}, isbn-element, title-element, uthor-element *, character-element* }
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.