Name
oneOrMore —
oneOrMore
pattern
Synopsis
element oneOrMore { ( attribute ns { text }?, attribute datatypeLibrary { xsd:anyURI }?, attribute * - (rng:* | local:*) { text }* ), ( ( element * - rng:* { ... }* ) & ( element element { ... } | element attribute { ... } | element group { ... } | element interleave { ... } | element choice { ... } | element optional { ... } | element zeroOrMore { ... } | element oneOrMore { ... } | element list { ... } | element mixed { ... } | element ref { ... } | element parentRef { ... } | element empty { ... } | element text { ... } | element value { ... } | element data { ... } | element notAllowed { ... } | element externalRef { ... } | element grammar { ... } )+ ) }
Class
pattern
May be included in
attribute
, choice
,
define
, element
,
except
, group
,
interleave
, list
,
mixed
, oneOrMore
,
optional
, start
,
zeroOrMore
Compact syntax equivalent
pattern+
Description
The oneOrMore
pattern specifies that its
subpatterns considered as an ordered group must be matched one or
more times.
Restrictions
The oneOrMore
pattern can’t
contain attribute definitions.
Example
<element name="library"> <oneOrMore> <element name="book"> ... </element> </oneOrMore> </element>
Attributes
-
datatypeLibrary
This attribute defines the default datatype library. The value is inherited.
-
ns
This attribute defines the default namespace for the elements defined in a portion of schema. The value is inherited.
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.