slide 39

RELAX NG Element Definitions

XML syntax:
<define name="given">
  <element name="given">
    <text/>
  </element>
</define>

<define name="family">
  <element name="family">
    <text/>
  </element>
</define>

<define name="name">
  <element name="name">
    <ref name="given"/>
    <ref name="family"/>
  </element>
</define>

Compact syntax:
given = element given { text } family = element family {
              text } name = element name { given, family }