RELAX NG Schema for Graphic Elments
Author: Hugh Field-Richards
Date: 2004-10-28T08:30

This is the RELAX NG schema for Graphic Elments.


Included file: common.rng

Graphic

A graphic is accessed using the ref attribute and encloses the graphic title. The name attribute is a convenience to make a neutral method to reference the graphic in XSLT etc.

graphic.graphicElement — Warning! not used within this schema file.
define : graphic.graphicElement
element : graphic:graphic
refcommon.commonAttributes
attribute : ref
optional
attribute : name
optional
attribute : width
zeroOrMore
choice
reftext.forcedLine
reftext.emphElement
reftext.codeElement
reftext.whoElement
reftext.foreignWordElement
reftext.abbrevElement
reftext.noteElement
reflink.linkElement
Any text
<define name="graphic.graphicElement">
   <element name="graphic:graphic">
      <ref name="common.commonAttributes"/>
      <attribute name="ref"/>
      <optional>
         <attribute name="name"/>
      </optional>
      <optional>
         <attribute name="width"/>
      </optional>
      <zeroOrMore>
         <choice>
            <ref name="text.forcedLine"/>
            <ref name="text.emphElement"/>
            <ref name="text.codeElement"/>
            <ref name="text.whoElement"/>
            <ref name="text.foreignWordElement"/>
            <ref name="text.abbrevElement"/>
            <ref name="text.noteElement"/>
            <ref name="link.linkElement"/>
            <text/>
         </choice>
      </zeroOrMore>
   </element>
</define>