<?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 from ODD source 2006-05-11T11:31:17+09:00. This schema has been developed using the ODD (One Document Does it
            all) language of the Text Encoding Initiative (). This is a literate programming language for writing XML schemas, with three
            characteristics: (1) The element and attribute set is specified using
              an XML vocabulary which includes support for macros
              (like DTD entities, or schema patterns), a hierarchical
              class system for attributes and elements, and creation
              of modules. (2) The content models for elements and attributes is
              written using embedded RELAX NG XML notation. (3) Documentation for elements, attributes, value
              lists etc. is written inline, along with examples and
              other supporting material. XSLT transformations
              are provided by the TEI to extract documentation in
              HTML, XSL FO or LaTeX forms, and to generate RELAX NG
              documents and DTD. From the RELAX NG documents, James
              Clark's trang
              can be used to create XML Schema documents.-->
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-rules">
      <element name="rules" ns="http://www.w3.org/2005/11/its">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Container for global rules.</a:documentation>
         <ref name="its-rules.content"/>
         <ref name="its-rules.attributes"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-rules.content">
      <rng:group 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:zeroOrMore>
            <rng:ref name="its-ns"/>
         </rng:zeroOrMore>
         <rng:zeroOrMore>
            <rng:choice>
               <rng:ref name="its-translateRule"/>
               <rng:ref name="its-locInfoRule"/>
               <rng:ref name="its-termRule"/>
               <rng:ref name="its-dirRule"/>
               <rng:ref name="its-rubyRule"/>
               <rng:ref name="its-langRule"/>
               <rng:ref name="its-withinTextRule"/>
            </rng:choice>
         </rng:zeroOrMore>
      </rng:group>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-rules.attributes">
      <ref name="its-att.version.attributes"/>
      <rng:optional>
         <rng:attribute name="href" ns="http://www.w3.org/1999/xlink">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Pointer to external rules files.</a:documentation>
            <data type="anyURI"/>
         </rng:attribute>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-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="its-ns.content"/>
         <ref name="its-ns.attributes"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-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="its-ns.attributes">
      <rng:attribute name="prefix">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">The namespace prefix used in selection expressions.</a:documentation>
         <data type="NCName"/>
      </rng:attribute>
      <rng:attribute name="uri">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">The namespace being identified.</a:documentation>
         <data type="anyURI"/>
      </rng:attribute>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-att.selector.attributes">
      <ref name="att.selector.attribute.selector"/>
   </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">Expression identifing the nodes to be selected.</a:documentation>
         <data type="string"/>
      </rng:attribute>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-att.version.attributes">
      <ref name="att.version.attribute.version"/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.version.attribute.version">
      <rng:attribute xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" name="version" ns="http://www.w3.org/2005/11/its" a:defaultValue="1.0">
         <a:documentation>Version of the ITS schema.</a:documentation>
         <data type="float"/>
      </rng:attribute>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-span">
      <element name="span" ns="http://www.w3.org/2005/11/its">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Inline element to contain ITS information.</a:documentation>
         <ref name="its-span.content"/>
         <ref name="its-span.attributes"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-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="its-ruby"/>
         </rng:choice>
      </rng:zeroOrMore>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-span.attributes">
      <ref name="its-att.translate.attributes"/>
      <ref name="its-att.locInfo.attributes"/>
      <ref name="its-att.term.attributes"/>
      <ref name="its-att.dir.attributes"/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-translateRule">
      <element name="translateRule" ns="http://www.w3.org/2005/11/its">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Rule about translatability.</a:documentation>
         <ref name="its-translateRule.content"/>
         <ref name="its-translateRule.attributes"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-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="its-translateRule.attributes">
      <ref name="its-att.selector.attributes"/>
      <rng:attribute name="translate">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">The translatability information to be
		    applied to selected nodes.</a:documentation>
         <choice>
            <value>yes</value>
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">The nodes need to be translated.</a:documentation>
            <value>no</value>
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">The nodes must not be translated.</a:documentation>
         </choice>
      </rng:attribute>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-att.translate.attributes">
      <ref name="att.translate.attribute.translate"/>
   </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>
               <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">The nodes need to be translated.</a:documentation>
               <value>no</value>
               <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">The nodes must not be translated.</a:documentation>
            </choice>
         </rng:attribute>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-locInfoRule">
      <element name="locInfoRule" ns="http://www.w3.org/2005/11/its">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Rule about localization information.</a:documentation>
         <ref name="its-locInfoRule.content"/>
         <ref name="its-locInfoRule.attributes"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-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="its-locInfo"/>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-locInfoRule.attributes">
      <ref name="its-att.selector.attributes"/>
      <rng:optional>
         <rng:attribute name="locInfoPointer">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Relative XPath expression pointing to a node that holds the localization information.</a:documentation>
            <data type="string"/>
         </rng:attribute>
      </rng:optional>
      <rng:attribute name="locInfoType">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">The type of localization information.</a:documentation>
         <choice>
            <value>alert</value>
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Localization information is an alert.</a:documentation>
            <value>description</value>
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Localization information is a description.</a:documentation>
         </choice>
      </rng:attribute>
      <rng:optional>
         <rng:attribute name="locInfoRef">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">URI referring to the location of the localization information.</a:documentation>
            <data type="anyURI"/>
         </rng:attribute>
      </rng:optional>
      <rng:optional>
         <rng:attribute name="locInfoRefPointer">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Relative XPath expression pointing to a node that holds the URI referring to the location of the localization information.</a:documentation>
            <data type="string"/>
         </rng:attribute>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-locInfo">
      <element name="locInfo" ns="http://www.w3.org/2005/11/its">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Contains localization information.</a:documentation>
         <ref name="its-locInfo.content"/>
         <ref name="its-locInfo.attributes"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-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="its-locInfo.attributes">
      <ref name="its-att.translate.attributes"/>
      <ref name="its-att.locInfo.attributes"/>
      <ref name="its-att.term.attributes"/>
      <ref name="its-att.dir.attributes"/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-att.locInfo.attributes">
      <ref name="att.locInfo.attribute.locInfo"/>
      <ref name="att.locInfo.attribute.locInfoType"/>
      <ref name="att.locInfo.attribute.locInfoRef"/>
   </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">Localization information.</a:documentation>
            <data type="string"/>
         </rng:attribute>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.locInfo.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">The type of localization information.</a:documentation>
            <choice>
               <value>alert</value>
               <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Localization information is an alert.</a:documentation>
               <value>description</value>
               <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Localization information is a description.</a:documentation>
            </choice>
         </rng:attribute>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.locInfo.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">URI referring to the location of the localization information.</a:documentation>
            <data type="anyURI"/>
         </rng:attribute>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-termRule">
      <element name="termRule" ns="http://www.w3.org/2005/11/its">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Rule about terminological information.</a:documentation>
         <ref name="its-termRule.content"/>
         <ref name="its-termRule.attributes"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-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="its-termRule.attributes">
      <ref name="its-att.selector.attributes"/>
      <rng:optional>
         <rng:attribute name="termInfoRef">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Pointer to a resource containing
		      information about the term.</a:documentation>
            <data type="anyURI"/>
         </rng:attribute>
      </rng:optional>
      <rng:optional>
         <rng:attribute name="termInfoRefPointer">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">The location of a local pointer to a
		      resource containing information about the term.
		      </a:documentation>
            <data type="string"/>
         </rng:attribute>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-att.term.attributes">
      <ref name="att.term.attribute.termInfoRef"/>
      <ref name="att.term.attribute.term"/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.term.attribute.termInfoRef">
      <rng:optional>
         <rng:attribute name="termInfoRef" ns="http://www.w3.org/2005/11/its">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Pointer to a resource containing
		      information about the term.</a:documentation>
            <data type="anyURI"/>
         </rng:attribute>
      </rng:optional>
   </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">Indicates a term locally.</a:documentation>
            <choice>
               <value>yes</value>
               <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Only the value 'yes' is possible for the term attribute.</a:documentation>
            </choice>
         </rng:attribute>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-dirRule">
      <element name="dirRule" ns="http://www.w3.org/2005/11/its">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Rule about directionality.</a:documentation>
         <ref name="its-dirRule.content"/>
         <ref name="its-dirRule.attributes"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-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="its-dirRule.attributes">
      <ref name="its-att.selector.attributes"/>
      <rng:attribute name="dir">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">The text direction for the selection.</a:documentation>
         <choice>
            <value>ltr</value>
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Left-to-right text.</a:documentation>
            <value>rtl</value>
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Right-to-left text.</a:documentation>
            <value>lro</value>
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Left-to-right override.</a:documentation>
            <value>rlo</value>
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Right-to-left override.</a:documentation>
         </choice>
      </rng:attribute>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-att.dir.attributes">
      <ref name="att.dir.attribute.dir"/>
   </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">The text direction for the context.</a:documentation>
            <choice>
               <value>ltr</value>
               <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Left-to-right text.</a:documentation>
               <value>rtl</value>
               <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Right-to-left text.</a:documentation>
               <value>lro</value>
               <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Left-to-right override.</a:documentation>
               <value>rlo</value>
               <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Right-to-left override.</a:documentation>
            </choice>
         </rng:attribute>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-rubyRule">
      <element name="rubyRule" ns="http://www.w3.org/2005/11/its">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Rule about Ruby markup.</a:documentation>
         <ref name="its-rubyRule.content"/>
         <ref name="its-rubyRule.attributes"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-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="its-rubyRule.attributes">
      <ref name="its-att.selector.attributes"/>
      <rng:optional>
         <rng:attribute name="rubyPointer">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Relative XPath expression pointing to a node which corresponds to a ruby element</a:documentation>
            <data type="string"/>
         </rng:attribute>
      </rng:optional>
      <rng:optional>
         <rng:attribute name="rbPointer">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Relative XPath expression pointing to a node which corresponds to a rb element</a:documentation>
            <data type="string"/>
         </rng:attribute>
      </rng:optional>
      <rng:optional>
         <rng:attribute name="rtPointer">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Relative XPath expression pointing to a node which corresponds to a rt element</a:documentation>
            <data type="string"/>
         </rng:attribute>
      </rng:optional>
      <rng:optional>
         <rng:attribute name="rpPointer">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Relative XPath expression pointing to a node which corresponds to a rp element</a:documentation>
            <data type="string"/>
         </rng:attribute>
      </rng:optional>
      <rng:optional>
         <rng:attribute name="rbcPointer">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Relative XPath expression pointing to a node which corresponds to a rbc element</a:documentation>
            <data type="string"/>
         </rng:attribute>
      </rng:optional>
      <rng:optional>
         <rng:attribute name="rtcPointer">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Relative XPath expression pointing to a node which corresponds to a rtc element</a:documentation>
            <data type="string"/>
         </rng:attribute>
      </rng:optional>
      <rng:optional>
         <rng:attribute name="rubyText">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Ruby text.</a:documentation>
            <data type="string"/>
         </rng:attribute>
      </rng:optional>
      <rng:optional>
         <rng:attribute name="rbspanPointer">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Relative XPath expression pointing to a node which corresponds to a rbspan attribute.</a:documentation>
            <data type="string"/>
         </rng:attribute>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-ruby">
      <element name="ruby" ns="http://www.w3.org/2005/11/its">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Ruby markup.</a:documentation>
         <ref name="its-ruby.content"/>
         <ref name="its-ruby.attributes"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-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="its-rb"/>
            <rng:choice>
               <rng:ref name="its-rt"/>
               <rng:group>
                  <rng:ref name="its-rp"/>
                  <rng:ref name="its-rt"/>
                  <rng:ref name="its-rp"/>
               </rng:group>
            </rng:choice>
         </rng:group>
         <rng:group>
            <rng:ref name="its-rbc"/>
            <rng:ref name="its-rtc"/>
            <rng:optional>
               <rng:ref name="its-rtc"/>
            </rng:optional>
         </rng:group>
      </rng:choice>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-ruby.attributes">
      <ref name="its-att.translate.attributes"/>
      <ref name="its-att.locInfo.attributes"/>
      <ref name="its-att.term.attributes"/>
      <ref name="its-att.dir.attributes"/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-rb">
      <element name="rb" ns="http://www.w3.org/2005/11/its">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Ruby base text.</a:documentation>
         <ref name="its-rb.content"/>
         <ref name="its-rb.attributes"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-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="its-rb.attributes">
      <ref name="its-att.translate.attributes"/>
      <ref name="its-att.locInfo.attributes"/>
      <ref name="its-att.term.attributes"/>
      <ref name="its-att.dir.attributes"/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-rt">
      <element name="rt" ns="http://www.w3.org/2005/11/its">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Ruby text.</a:documentation>
         <ref name="its-rt.content"/>
         <ref name="its-rt.attributes"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-rt.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="its-rt.attributes">
      <ref name="its-att.translate.attributes"/>
      <ref name="its-att.locInfo.attributes"/>
      <ref name="its-att.term.attributes"/>
      <ref name="its-att.dir.attributes"/>
      <rng:optional>
         <rng:attribute name="rbspan">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Allows an rt element to span multiple rb elements in complex ruby markup.</a:documentation>
            <data type="string"/>
         </rng:attribute>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-rbc">
      <element name="rbc" ns="http://www.w3.org/2005/11/its">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Container for rb elements in the case of complex ruby markup.</a:documentation>
         <ref name="its-rbc.content"/>
         <ref name="its-rbc.attributes"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-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="its-rb"/>
      </rng:oneOrMore>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-rbc.attributes">
      <ref name="its-att.translate.attributes"/>
      <ref name="its-att.locInfo.attributes"/>
      <ref name="its-att.term.attributes"/>
      <ref name="its-att.dir.attributes"/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-rtc">
      <element name="rtc" ns="http://www.w3.org/2005/11/its">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Container for rt elements in the case of complex ruby markup. </a:documentation>
         <ref name="its-rtc.content"/>
         <ref name="its-rtc.attributes"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-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="its-rt"/>
      </rng:oneOrMore>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-rtc.attributes">
      <ref name="its-att.translate.attributes"/>
      <ref name="its-att.locInfo.attributes"/>
      <ref name="its-att.term.attributes"/>
      <ref name="its-att.dir.attributes"/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-rp">
      <element name="rp" ns="http://www.w3.org/2005/11/its">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Used in the case of simple ruby markup to specify characters that can denote the beginning and end of ruby text when user agents do not have other ways to present ruby text distinctively from the base text.</a:documentation>
         <ref name="its-rp.content"/>
         <ref name="its-rp.attributes"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-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="its-rp.attributes">
      <ref name="its-att.translate.attributes"/>
      <ref name="its-att.locInfo.attributes"/>
      <ref name="its-att.term.attributes"/>
      <ref name="its-att.dir.attributes"/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-langRule">
      <element name="langRule" ns="http://www.w3.org/2005/11/its">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Rule about language identification markup.</a:documentation>
         <ref name="its-langRule.content"/>
         <ref name="its-langRule.attributes"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-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="its-langRule.attributes">
      <ref name="its-att.selector.attributes"/>
      <rng:attribute name="langPointer">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Relative XPath expression pointing to a node which contains language information.</a:documentation>
         <data type="string"/>
      </rng:attribute>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-withinTextRule">
      <element name="withinTextRule" ns="http://www.w3.org/2005/11/its">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Rule about markup of "intext" elements.</a:documentation>
         <ref name="its-withinTextRule.content"/>
         <ref name="its-withinTextRule.attributes"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="its-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="its-withinTextRule.attributes">
      <ref name="its-att.selector.attributes"/>
      <rng:attribute name="withinText">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">States whether current context is regarded as
		    "within text".</a:documentation>
         <choice>
            <value>yes</value>
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">The element and its content are part of the flow of its parent element.</a:documentation>
            <value>no</value>
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">The element splits the text flow of its parent element and its content is an independent text flow.</a:documentation>
            <value>nested</value>
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">The element is part of the flow of its parent element, its content is an independent flow.</a:documentation>
         </choice>
      </rng:attribute>
   </define>
</rng:grammar>