rng:element

Purpose

Defines an element. Refer to the topic entitled Creating a binding definition for further information.

Contained by

Contains

Attributes

Attribute Description Type Default Options Use
name The name of the element. xs:QName (with prefix)     required 
bd:component Specifies whether or not the element is converted to a component. xs:boolean false  false, true  optional 
bd:presentional Specifies whether or not the element is presentional. xs:boolean true  false, true  optional 

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