Name
rng:start
Specifies a pattern within a grammar that must be matched in
order to match the whole grammar
element
XML syntax example
<grammar xmlns="http://relaxng.org/ns/structure/1.0"> <start> <element name="date"> <ref name="date"/> </element> </start> <define name="date"> <interleave> <element name="month"> <text/> </element> <element name="day"> <text/> </element> <element name="year"> <text/> </element> </interleave> </define> </grammar>
Compact syntax example
start
= element date { date }
date = element month { text }
& element day { text }
& element year { text }
Attributes
combine
(|=
forchoice
,&=
forinterleave
)Used when grammars are included with
include
. Valid values arechoice
orinterleave
.choice
means multiplestart
elements are selected as one of a choice;interleave
means multiplestart
elements are interleaved.
Parents
div
, grammar
, include
Description
The start
element specifies
the pattern that must be matched in order for the grammar
pattern that contains it to match.
If the grammar
pattern is the
document element of the RELAX NG schema, then the start
element specifies the document
element of the instance being validated.
See also
§4, §9, grammar
, include
Get XML Pocket Reference, 3rd Edition 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.