<?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 2005-11-17T03:06:12+09:00
-->
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="data.scope">
      <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="data.itsBoolean">
      <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:value>yes</rng:value>
         <rng:value>no</rng:value>
      </rng:choice>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.scope.attributes">
      <ref name="att.scope.attribute.translateScope"/>
      <ref name="att.scope.attribute.locInfoScope"/>
      <ref name="att.scope.attribute.termScope"/>
      <ref name="att.scope.attribute.dirScope"/>
      <ref name="att.scope.attribute.rubyScope"/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.scope.attribute.translateScope">
      <rng:optional>
         <rng:attribute name="translateScope">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
            <ref name="data.scope"/>
         </rng:attribute>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.scope.attribute.locInfoScope">
      <rng:optional>
         <rng:attribute name="locInfoScope">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
            <ref name="data.scope"/>
         </rng:attribute>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.scope.attribute.termScope">
      <rng:optional>
         <rng:attribute name="termScope">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
            <ref name="data.scope"/>
         </rng:attribute>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.scope.attribute.dirScope">
      <rng:optional>
         <rng:attribute name="dirScope">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
            <ref name="data.scope"/>
         </rng:attribute>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.scope.attribute.rubyScope">
      <rng:optional>
         <rng:attribute name="rubyScope">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
            <ref name="data.scope"/>
         </rng:attribute>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="ruby">
      <element name="ruby">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
         <ref name="ruby.content"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="ruby.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:ref name="rubyBase"/>
         <rng:ref name="rubyText"/>
      </rng:group>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="rubyBase">
      <element name="rubyBase">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
         <ref name="rubyBase.content"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="rubyBase.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="rubyText">
      <element name="rubyText">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
         <ref name="rubyText.content"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="rubyText.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="documentRules">
      <element name="documentRules">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">This element contains rules for ITS information, to be used in documents.</a:documentation>
         <ref name="documentRules.content"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="documentRules.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="documentRule"/>
      </rng:oneOrMore>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="documentRule">
      <element name="documentRule">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">A rule to express ITS information and the scope of it, to be used in a dislocated
              position in a document.</a:documentation>
         <ref name="documentRule.content"/>
         <ref name="documentRule.attributes"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="documentRule.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="documentRule.attributes">
      <ref name="att.scope.attributes"/>
      <ref name="att.datacats.attributes"/>
      <empty/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="schemaRules">
      <element name="schemaRules">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">This element contains rules for ITS information, to be used as schema annotation.</a:documentation>
         <ref name="schemaRules.content"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="schemaRules.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="schemaRule"/>
      </rng:oneOrMore>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="schemaRule">
      <element name="schemaRule">
         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">A rule to express ITS information and the scope of it, to be used as schema
              annotation.</a:documentation>
         <ref name="schemaRule.content"/>
         <ref name="schemaRule.attributes"/>
      </element>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="schemaRule.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="schemaRule.attributes">
      <ref name="att.datacats.attributes"/>
      <empty/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.datacats.attributes">
      <ref name="att.datacats.attribute.translate"/>
      <ref name="att.datacats.attribute.locInfo"/>
      <ref name="att.datacats.attribute.locInfoType"/>
      <ref name="att.datacats.attribute.term"/>
      <ref name="att.datacats.attribute.termRef"/>
      <ref name="att.datacats.attribute.dir"/>
      <ref name="att.datacats.attribute.bdo"/>
      <ref name="att.datacats.attribute.rubyText"/>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.datacats.attribute.translate">
      <rng:optional>
         <rng:attribute name="translate">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
            <ref name="data.itsBoolean"/>
         </rng:attribute>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.datacats.attribute.locInfo">
      <rng:optional>
         <rng:attribute name="locInfo">
            <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.datacats.attribute.locInfoType">
      <rng:optional>
         <rng:attribute name="locInfoType">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
            <choice>
               <value>description</value>
               <value>alert</value>
            </choice>
         </rng:attribute>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.datacats.attribute.term">
      <rng:optional>
         <rng:attribute name="term">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
            <value>yes</value>
         </rng:attribute>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.datacats.attribute.termRef">
      <rng:optional>
         <rng:attribute name="termRef">
            <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.datacats.attribute.dir">
      <rng:optional>
         <rng:attribute name="dir">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
            <choice>
               <value>ltr</value>
               <value>rtl</value>
            </choice>
         </rng:attribute>
      </rng:optional>
   </define>
   <define xmlns="http://relaxng.org/ns/structure/1.0" name="att.datacats.attribute.bdo">
      <rng:optional>
         <rng:attribute name="bdo">
            <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="att.datacats.attribute.rubyText">
      <rng:optional>
         <rng:attribute name="rubyText">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
            <text/>
         </rng:attribute>
      </rng:optional>
   </define>
   <rng:start>
      <rng:ref name="documentRules"/>
   </rng:start>
</rng:grammar>