Name
rng:div — Groups definitions for documentation purposes
XML syntax example
<grammar xmlns:doc="http://simonstl.com/ns/doc" xmlns="http://relaxng.org/ns/structure/1.0"> <start> <ref name="greeting"/> </start> <div doc:note="This section says 'hello.'"> <define name="greeting" combine="choice"> <element name="hello"><text/></element> </define> </div> <div doc:note="This section says 'hi.'"> <define name="greeting" combine="choice"> <element name="hi"><text/></element> </define> </div> </grammar>
Compact syntax example
namespace doc = "http://simonstl.com/ns/doc" start = greeting [ doc:note = "This section says 'hello.'" ]div
{ greeting |= element hello { text } } [ doc:note = "This section says 'hi.'" ]div
{ greeting |= element hi { text } }
Parents
div
, grammar
Description
The div
element allows you
to divide a list of definitions into modules, primarily for
documentation purposes. RELAX NG processors essentially disregard
the div
element. div
elements may contain other div
elements.
See also
§12
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.