<?xml version="1.0" encoding="utf-8"?>
<rng:grammar xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:teix="http://www.tei-c.org/ns/Examples" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" ns="http://www.w3.org/2005/11/its"><!--Schema generated 2006-04-11T13:43:02+09:00
-->
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="rules">
      <element name="rules" ns="http://www.w3.org/2005/11/its">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
         <ref name="rules.content"/>
         <ref name="rules.attributes"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="rules.content">
      <rng:zeroOrMore xmlns="http://www.tei-c.org/ns/1.0" xmlns:its="http://www.w3.org/2005/11/its" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:spec="http://example.com/xmlspec">
         <rng:ref name="ns"/>
      </rng:zeroOrMore>
      <rng:oneOrMore xmlns="http://www.tei-c.org/ns/1.0" xmlns:its="http://www.w3.org/2005/11/its" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:spec="http://example.com/xmlspec">
         <rng:choice>
            <rng:ref name="translateRule"/>
            <rng:ref name="locInfoRule"/>
            <rng:ref name="termRule"/>
            <rng:ref name="dirRule"/>
            <rng:ref name="rubyRule"/>
            <rng:ref name="langRule"/>
            <rng:ref name="withinTextRule"/>
         </rng:choice>
      </rng:oneOrMore>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="rules.attributes">
      <ref name="att.xlink.attributes"/>
      <empty/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.xlink.attributes">
      <ref name="att.xlink.attribute.href"/>
      <empty/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.xlink.attribute.href">
      <rng:optional>
         <rng:attribute name="href" ns="http://www.w3.org/1999/xlinkf">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
            <data type="anyURI"/>
         </rng:attribute>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="ns">
      <element name="ns" ns="http://www.w3.org/2005/11/its">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">An element to describe namespace URIs and prefixes within XPath expressions in
                rules elements.</a:documentation>
         <ref name="ns.content"/>
         <ref name="ns.attributes"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="ns.content">
      <rng:empty xmlns="http://www.tei-c.org/ns/1.0" xmlns:its="http://www.w3.org/2005/11/its" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:spec="http://example.com/xmlspec"/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="ns.attributes">
      <ref name="att.nsident.attributes"/>
      <empty/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.nsident.attributes">
      <ref name="att.nsident.attribute.prefix"/>
      <ref name="att.nsident.attribute.uri"/>
      <empty/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.nsident.attribute.prefix">
      <rng:attribute name="prefix" ns="http://www.w3.org/2005/11/its">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
         <data type="NCName"/>
      </rng:attribute>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.nsident.attribute.uri">
      <rng:attribute name="uri" ns="http://www.w3.org/2005/11/its">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
         <data type="anyURI"/>
      </rng:attribute>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.selector.attributes">
      <ref name="att.selector.attribute.selector"/>
      <empty/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.selector.attribute.selector">
      <rng:attribute name="selector">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
         <text/>
      </rng:attribute>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="span">
      <element name="span" ns="http://www.w3.org/2005/11/its">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
         <ref name="span.content"/>
         <ref name="span.attributes"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="span.content">
      <rng:zeroOrMore xmlns="http://www.tei-c.org/ns/1.0" xmlns:its="http://www.w3.org/2005/11/its" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:spec="http://example.com/xmlspec">
         <rng:choice>
            <rng:text/>
            <rng:ref name="ruby"/>
         </rng:choice>
      </rng:zeroOrMore>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="span.attributes">
      <ref name="att.translate.attributes"/>
      <ref name="att.locInfo.attributes"/>
      <ref name="att.locInfoType.attributes"/>
      <ref name="att.locInfoRef.attributes"/>
      <ref name="att.term.attributes"/>
      <ref name="att.termRef.attributes"/>
      <ref name="att.dir.attributes"/>
      <empty/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="translateRule">
      <element name="translateRule" ns="http://www.w3.org/2005/11/its">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
         <ref name="translateRule.content"/>
         <ref name="translateRule.attributes"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="translateRule.content">
      <rng:empty xmlns="http://www.tei-c.org/ns/1.0" xmlns:its="http://www.w3.org/2005/11/its" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:spec="http://example.com/xmlspec"/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="translateRule.attributes">
      <ref name="att.selector.attributes"/>
      <ref name="att.translate.attributes"/>
      <empty/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.translate.attributes">
      <ref name="att.translate.attribute.translate"/>
      <empty/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.translate.attribute.translate">
      <rng:optional>
         <rng:attribute name="translate" ns="http://www.w3.org/2005/11/its">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
            <choice>
               <value>yes</value>
               <value>no</value>
            </choice>
         </rng:attribute>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="locInfoRule">
      <element name="locInfoRule" ns="http://www.w3.org/2005/11/its">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
         <ref name="locInfoRule.content"/>
         <ref name="locInfoRule.attributes"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="locInfoRule.content">
      <rng:optional xmlns="http://www.tei-c.org/ns/1.0" xmlns:its="http://www.w3.org/2005/11/its" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:spec="http://example.com/xmlspec">
         <rng:ref name="locInfo"/>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="locInfoRule.attributes">
      <ref name="att.selector.attributes"/>
      <ref name="att.locInfoPointer.attributes"/>
      <ref name="att.locInfoRef.attributes"/>
      <ref name="att.locInfoRefPointer.attributes"/>
      <ref name="att.locInfoType.attributes"/>
      <empty/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="locInfo">
      <element name="locInfo" ns="http://www.w3.org/2005/11/its">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
         <ref name="locInfo.content"/>
         <ref name="locInfo.attributes"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="locInfo.content">
      <rng:text xmlns="http://www.tei-c.org/ns/1.0" xmlns:its="http://www.w3.org/2005/11/its" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:spec="http://example.com/xmlspec"/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="locInfo.attributes">
      <ref name="att.translate.attributes"/>
      <ref name="att.locInfo.attributes"/>
      <ref name="att.locInfoType.attributes"/>
      <ref name="att.locInfoRef.attributes"/>
      <ref name="att.term.attributes"/>
      <ref name="att.termRef.attributes"/>
      <ref name="att.dir.attributes"/>
      <empty/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.locInfo.attributes">
      <ref name="att.locInfo.attribute.locInfo"/>
      <empty/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.locInfo.attribute.locInfo">
      <rng:optional>
         <rng:attribute name="locInfo" ns="http://www.w3.org/2005/11/its">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
            <text/>
         </rng:attribute>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.locInfoPointer.attributes">
      <ref name="att.locInfoPointer.attribute.locInfoPointer"/>
      <empty/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.locInfoPointer.attribute.locInfoPointer">
      <rng:optional>
         <rng:attribute name="locInfoPointer" ns="http://www.w3.org/2005/11/its">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
            <text/>
         </rng:attribute>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.locInfoType.attributes">
      <ref name="att.locInfoType.attribute.locInfoType"/>
      <empty/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.locInfoType.attribute.locInfoType">
      <rng:optional>
         <rng:attribute name="locInfoType" ns="http://www.w3.org/2005/11/its">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
            <choice>
               <value>alert</value>
               <value>description</value>
            </choice>
         </rng:attribute>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.locInfoRef.attributes">
      <ref name="att.locInfoRef.attribute.locInfoRef"/>
      <empty/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.locInfoRef.attribute.locInfoRef">
      <rng:optional>
         <rng:attribute name="locInfoRef" ns="http://www.w3.org/2005/11/its">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
            <data type="anyURI"/>
         </rng:attribute>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.locInfoRefPointer.attributes">
      <ref name="att.locInfoRefPointer.attribute.locInfoRefPointer"/>
      <empty/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.locInfoRefPointer.attribute.locInfoRefPointer">
      <rng:optional>
         <rng:attribute name="locInfoRefPointer" ns="http://www.w3.org/2005/11/its">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
            <text/>
         </rng:attribute>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="termRule">
      <element name="termRule" ns="http://www.w3.org/2005/11/its">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
         <ref name="termRule.content"/>
         <ref name="termRule.attributes"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="termRule.content">
      <rng:empty xmlns="http://www.tei-c.org/ns/1.0" xmlns:its="http://www.w3.org/2005/11/its" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:spec="http://example.com/xmlspec"/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="termRule.attributes">
      <ref name="att.selector.attributes"/>
      <ref name="att.termRef.attributes"/>
      <ref name="att.termRefPointer.attributes"/>
      <empty/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.termRef.attributes">
      <ref name="att.termRef.attribute.termRef"/>
      <empty/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.termRef.attribute.termRef">
      <rng:optional>
         <rng:attribute name="termRef" ns="http://www.w3.org/2005/11/its">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
            <data type="anyURI"/>
         </rng:attribute>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.termRefPointer.attributes">
      <ref name="att.termRefPointer.attribute.termRefPointer"/>
      <empty/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.termRefPointer.attribute.termRefPointer">
      <rng:optional>
         <rng:attribute name="termRefPointer" ns="http://www.w3.org/2005/11/its">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
            <text/>
         </rng:attribute>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.term.attributes">
      <ref name="att.term.attribute.term"/>
      <empty/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.term.attribute.term">
      <rng:optional>
         <rng:attribute name="term" ns="http://www.w3.org/2005/11/its">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
            <choice>
               <value>yes</value>
            </choice>
         </rng:attribute>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="dirRule">
      <element name="dirRule" ns="http://www.w3.org/2005/11/its">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
         <ref name="dirRule.content"/>
         <ref name="dirRule.attributes"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="dirRule.content">
      <rng:empty xmlns="http://www.tei-c.org/ns/1.0" xmlns:its="http://www.w3.org/2005/11/its" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:spec="http://example.com/xmlspec"/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="dirRule.attributes">
      <ref name="att.selector.attributes"/>
      <ref name="att.dir.attributes"/>
      <empty/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.dir.attributes">
      <ref name="att.dir.attribute.dir"/>
      <empty/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.dir.attribute.dir">
      <rng:optional>
         <rng:attribute name="dir" ns="http://www.w3.org/2005/11/its">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
            <choice>
               <value>ltr</value>
               <value>rtl</value>
               <value>lro</value>
               <value>rlo</value>
            </choice>
         </rng:attribute>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="rubyRule">
      <element name="rubyRule" ns="http://www.w3.org/2005/11/its">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
         <ref name="rubyRule.content"/>
         <ref name="rubyRule.attributes"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="rubyRule.content">
      <rng:empty xmlns="http://www.tei-c.org/ns/1.0" xmlns:its="http://www.w3.org/2005/11/its" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:spec="http://example.com/xmlspec"/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="rubyRule.attributes">
      <ref name="att.selector.attributes"/>
      <ref name="att.rubyPointers.attributes"/>
      <ref name="att.rubyText.attributes"/>
      <empty/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.rubyPointers.attributes">
      <ref name="att.rubyPointers.attribute.rubyPointer"/>
      <ref name="att.rubyPointers.attribute.rbPointer"/>
      <ref name="att.rubyPointers.attribute.rtPointer"/>
      <ref name="att.rubyPointers.attribute.rpPointer"/>
      <ref name="att.rubyPointers.attribute.rbcPointer"/>
      <ref name="att.rubyPointers.attribute.rtcPointer"/>
      <empty/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.rubyPointers.attribute.rubyPointer">
      <rng:optional>
         <rng:attribute name="rubyPointer" ns="http://www.w3.org/2005/11/its">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
            <text/>
         </rng:attribute>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.rubyPointers.attribute.rbPointer">
      <rng:optional>
         <rng:attribute name="rbPointer" ns="http://www.w3.org/2005/11/its">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
            <text/>
         </rng:attribute>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.rubyPointers.attribute.rtPointer">
      <rng:optional>
         <rng:attribute name="rtPointer" ns="http://www.w3.org/2005/11/its">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
            <text/>
         </rng:attribute>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.rubyPointers.attribute.rpPointer">
      <rng:optional>
         <rng:attribute name="rpPointer" ns="http://www.w3.org/2005/11/its">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
            <text/>
         </rng:attribute>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.rubyPointers.attribute.rbcPointer">
      <rng:optional>
         <rng:attribute name="rbcPointer" ns="http://www.w3.org/2005/11/its">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
            <text/>
         </rng:attribute>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.rubyPointers.attribute.rtcPointer">
      <rng:optional>
         <rng:attribute name="rtcPointer" ns="http://www.w3.org/2005/11/its">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
            <text/>
         </rng:attribute>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.rubyText.attributes">
      <ref name="att.rubyText.attribute.rubyText"/>
      <empty/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.rubyText.attribute.rubyText">
      <rng:optional>
         <rng:attribute name="rubyText" ns="http://www.w3.org/2005/11/its">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
            <text/>
         </rng:attribute>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="ruby">
      <element name="ruby" ns="http://www.w3.org/2005/11/its">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
         <ref name="ruby.content"/>
         <ref name="ruby.attributes"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="ruby.content">
      <rng:choice xmlns="http://www.tei-c.org/ns/1.0" xmlns:its="http://www.w3.org/2005/11/its" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:spec="http://example.com/xmlspec">
         <rng:group>
            <rng:ref name="rb"/>
            <rng:choice>
               <rng:ref name="rt"/>
               <rng:group>
                  <rng:ref name="rp"/>
                  <rng:ref name="rt"/>
                  <rng:ref name="rp"/>
               </rng:group>
            </rng:choice>
         </rng:group>
         <rng:group>
            <rng:ref name="rbc"/>
            <rng:ref name="rtc"/>
            <rng:optional>
               <rng:ref name="rtc"/>
            </rng:optional>
         </rng:group>
      </rng:choice>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="ruby.attributes">
      <ref name="att.translate.attributes"/>
      <ref name="att.locInfo.attributes"/>
      <ref name="att.locInfoType.attributes"/>
      <ref name="att.locInfoRef.attributes"/>
      <ref name="att.term.attributes"/>
      <ref name="att.termRef.attributes"/>
      <ref name="att.dir.attributes"/>
      <empty/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="rb">
      <element name="rb" ns="http://www.w3.org/2005/11/its">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
         <ref name="rb.content"/>
         <ref name="rb.attributes"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="rb.content">
      <rng:text xmlns="http://www.tei-c.org/ns/1.0" xmlns:its="http://www.w3.org/2005/11/its" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:spec="http://example.com/xmlspec"/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="rb.attributes">
      <ref name="att.translate.attributes"/>
      <ref name="att.locInfo.attributes"/>
      <ref name="att.locInfoType.attributes"/>
      <ref name="att.locInfoRef.attributes"/>
      <ref name="att.term.attributes"/>
      <ref name="att.termRef.attributes"/>
      <ref name="att.dir.attributes"/>
      <empty/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="rt">
      <element name="rt" ns="http://www.w3.org/2005/11/its">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
         <ref name="rt.content"/>
         <ref name="rt.attributes"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="rt.content">
      <rng:attribute xmlns="http://www.tei-c.org/ns/1.0" xmlns:its="http://www.w3.org/2005/11/its" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:spec="http://example.com/xmlspec" name="rbspan"/>
      <rng:text xmlns="http://www.tei-c.org/ns/1.0" xmlns:its="http://www.w3.org/2005/11/its" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:spec="http://example.com/xmlspec"/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="rt.attributes">
      <ref name="att.translate.attributes"/>
      <ref name="att.locInfo.attributes"/>
      <ref name="att.locInfoType.attributes"/>
      <ref name="att.locInfoRef.attributes"/>
      <ref name="att.term.attributes"/>
      <ref name="att.termRef.attributes"/>
      <ref name="att.dir.attributes"/>
      <empty/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="rbc">
      <element name="rbc" ns="http://www.w3.org/2005/11/its">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
         <ref name="rbc.content"/>
         <ref name="rbc.attributes"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="rbc.content">
      <rng:oneOrMore xmlns="http://www.tei-c.org/ns/1.0" xmlns:its="http://www.w3.org/2005/11/its" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:spec="http://example.com/xmlspec">
         <rng:ref name="rb"/>
      </rng:oneOrMore>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="rbc.attributes">
      <ref name="att.translate.attributes"/>
      <ref name="att.locInfo.attributes"/>
      <ref name="att.locInfoType.attributes"/>
      <ref name="att.locInfoRef.attributes"/>
      <ref name="att.term.attributes"/>
      <ref name="att.termRef.attributes"/>
      <ref name="att.dir.attributes"/>
      <empty/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="rtc">
      <element name="rtc" ns="http://www.w3.org/2005/11/its">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
         <ref name="rtc.content"/>
         <ref name="rtc.attributes"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="rtc.content">
      <rng:oneOrMore xmlns="http://www.tei-c.org/ns/1.0" xmlns:its="http://www.w3.org/2005/11/its" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:spec="http://example.com/xmlspec">
         <rng:ref name="rt"/>
      </rng:oneOrMore>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="rtc.attributes">
      <ref name="att.translate.attributes"/>
      <ref name="att.locInfo.attributes"/>
      <ref name="att.locInfoType.attributes"/>
      <ref name="att.locInfoRef.attributes"/>
      <ref name="att.term.attributes"/>
      <ref name="att.termRef.attributes"/>
      <ref name="att.dir.attributes"/>
      <empty/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="rp">
      <element name="rp" ns="http://www.w3.org/2005/11/its">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
         <ref name="rp.content"/>
         <ref name="rp.attributes"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="rp.content">
      <rng:text xmlns="http://www.tei-c.org/ns/1.0" xmlns:its="http://www.w3.org/2005/11/its" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:spec="http://example.com/xmlspec"/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="rp.attributes">
      <ref name="att.translate.attributes"/>
      <ref name="att.locInfo.attributes"/>
      <ref name="att.locInfoType.attributes"/>
      <ref name="att.locInfoRef.attributes"/>
      <ref name="att.term.attributes"/>
      <ref name="att.termRef.attributes"/>
      <ref name="att.dir.attributes"/>
      <empty/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="langRule">
      <element name="langRule" ns="http://www.w3.org/2005/11/its">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
         <ref name="langRule.content"/>
         <ref name="langRule.attributes"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="langRule.content">
      <rng:empty xmlns="http://www.tei-c.org/ns/1.0" xmlns:its="http://www.w3.org/2005/11/its" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:spec="http://example.com/xmlspec"/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="langRule.attributes">
      <ref name="att.selector.attributes"/>
      <ref name="att.langPointer.attributes"/>
      <empty/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.langPointer.attributes">
      <ref name="att.langPointer.attribute.langPointer"/>
      <empty/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.langPointer.attribute.langPointer">
      <rng:attribute name="langPointer" ns="http://www.w3.org/2005/11/its">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
         <text/>
      </rng:attribute>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="withinTextRule">
      <element name="withinTextRule" ns="http://www.w3.org/2005/11/its">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
         <ref name="withinTextRule.content"/>
         <ref name="withinTextRule.attributes"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="withinTextRule.content">
      <rng:empty xmlns="http://www.tei-c.org/ns/1.0" xmlns:its="http://www.w3.org/2005/11/its" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:spec="http://example.com/xmlspec"/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="withinTextRule.attributes">
      <ref name="att.selector.attributes"/>
      <ref name="att.withinText.attributes"/>
      <empty/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.withinText.attributes">
      <ref name="att.withinText.attribute.withinText"/>
      <empty/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.withinText.attribute.withinText">
      <rng:attribute name="withinText" ns="http://www.w3.org/2005/11/its">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
         <choice>
            <value>yes</value>
            <value>no</value>
         </choice>
      </rng:attribute>
   </define>
   <rng:start>
      <rng:ref name="rules"/>
   </rng:start>
</rng:grammar>