rng:define

Purpose

Contains one or more rng:element elements. Refer to the topic entitled Creating a binding definition for further information.

Contained by

Contains

Attributes

Attribute Description Type Default Options Use
name The only supported value is 'elements'. xs:NCName elements  elements required 

Example

<rng:grammar>
  <rng:start>
    <rng:element name="cool:folding-item" bd:component="true"/>
  </rng:start>
  <rng:define name="elements">
    <rng:element name="cool:summary"/>
    <rng:element name="cool:details"/>
  </rng:define>
</rng:grammar>

Please see the topic entitled Creating a reusable component for a concrete example.

Related topics