
<!--
DTD Generated 2007-04-02T11:42:43+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.
-->
<!ENTITY % ITSNS 'its:' >
<!ENTITY % its-dirRule "%ITSNS;dirRule">
<!ENTITY % its-langRule "%ITSNS;langRule">
<!ENTITY % its-locNote "%ITSNS;locNote">
<!ENTITY % its-locNoteRule "%ITSNS;locNoteRule">
<!ENTITY % its-rb "%ITSNS;rb">
<!ENTITY % its-rbc "%ITSNS;rbc">
<!ENTITY % its-rp "%ITSNS;rp">
<!ENTITY % its-rt "%ITSNS;rt">
<!ENTITY % its-rtc "%ITSNS;rtc">
<!ENTITY % its-ruby "%ITSNS;ruby">
<!ENTITY % its-rubyRule "%ITSNS;rubyRule">
<!ENTITY % its-rubyText "%ITSNS;rubyText">
<!ENTITY % its-rules "%ITSNS;rules">
<!ENTITY % its-span "%ITSNS;span">
<!ENTITY % its-termRule "%ITSNS;termRule">
<!ENTITY % its-translateRule "%ITSNS;translateRule">
<!ENTITY % its-withinTextRule "%ITSNS;withinTextRule">

<!-- start datatypes -->

<!-- end datatypes -->

<!-- start predeclared patterns -->

<!-- start rest of patterns -->

<!-- end patterns -->

<!-- start classes -->

<!ENTITY % its.att.selector.attributes '
selector CDATA #REQUIRED'> 
<!ENTITY % its.att.version.attributes '
%ITSNS;version CDATA "1.0" '> 
<!ENTITY % its.att.local.no-ns.attributes '
translate (yes|no) #IMPLIED
locNote CDATA #IMPLIED
locNoteType (alert|description) #IMPLIED
locNoteRef CDATA #IMPLIED
termInfoRef CDATA #IMPLIED
term (yes|no) #IMPLIED
dir (ltr|rtl|lro|rlo) #IMPLIED'> 
<!ENTITY % its.att.local.with-ns.attributes '
%ITSNS;translate (yes|no) #IMPLIED
%ITSNS;locNote CDATA #IMPLIED
%ITSNS;locNoteType (alert|description) #IMPLIED
%ITSNS;locNoteRef CDATA #IMPLIED
%ITSNS;termInfoRef CDATA #IMPLIED
%ITSNS;term (yes|no) #IMPLIED
%ITSNS;dir (ltr|rtl|lro|rlo) #IMPLIED'> 
<!ENTITY % its.att.translate.attributes '
%ITSNS;translate (yes|no) #IMPLIED'> 
<!ENTITY % its.att.locNote.attributes '
%ITSNS;locNote CDATA #IMPLIED
%ITSNS;locNoteType (alert|description) #IMPLIED
%ITSNS;locNoteRef CDATA #IMPLIED'> 
<!ENTITY % its.att.term.attributes '
%ITSNS;termInfoRef CDATA #IMPLIED
%ITSNS;term (yes|no) #IMPLIED'> 
<!ENTITY % its.att.dir.attributes '
%ITSNS;dir (ltr|rtl|lro|rlo) #IMPLIED'> 
<!-- stop classes -->

<!-- start elements -->

<!--doc:Rule about the Directionality data category. -->
<!ELEMENT %its-dirRule; EMPTY>
<!ATTLIST %its-dirRule;
 %its.att.selector.attributes;
dir (ltr|rtl|lro|rlo) #REQUIRED >
<!--doc:Rule about the Language Information data category. -->
<!ELEMENT %its-langRule; EMPTY>
<!ATTLIST %its-langRule;
 %its.att.selector.attributes;
langPointer CDATA #REQUIRED >
<!--doc:Contains a localization note. -->
<!ELEMENT %its-locNote; ( #PCDATA | %its-ruby; | %its-span;)*>
<!ATTLIST %its-locNote;
 %its.att.local.no-ns.attributes; >
<!--doc:Rule about the Localization Note data category. -->
<!ELEMENT %its-locNoteRule; (%its-locNote;)?>
<!ATTLIST %its-locNoteRule;
 %its.att.selector.attributes;
locNotePointer CDATA #IMPLIED
locNoteType (alert|description) #REQUIRED
locNoteRef CDATA #IMPLIED
locNoteRefPointer CDATA #IMPLIED >
<!--doc:Ruby base text. -->
<!ELEMENT %its-rb; ( #PCDATA | %its-span;)*>
<!ATTLIST %its-rb;
 %its.att.local.no-ns.attributes; >
<!--doc:Container for rb elements in the case of complex ruby markup. -->
<!ELEMENT %its-rbc; (%its-rb;)+>
<!ATTLIST %its-rbc;
 %its.att.local.no-ns.attributes; >
<!--doc: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. -->
<!ELEMENT %its-rp;  (#PCDATA)>
<!ATTLIST %its-rp;
 %its.att.local.no-ns.attributes; >
<!--doc:Ruby text. -->
<!ELEMENT %its-rt; ( #PCDATA | %its-span;)*>
<!ATTLIST %its-rt;
 %its.att.local.no-ns.attributes;
rbspan CDATA #IMPLIED >
<!--doc:Container for rt elements in the case of complex ruby markup.  -->
<!ELEMENT %its-rtc; (%its-rt;)+>
<!ATTLIST %its-rtc;
 %its.att.local.no-ns.attributes; >
<!--doc:Ruby markup. -->
<!ELEMENT %its-ruby; ((%its-rb;,(%its-rt; | (%its-rp;,%its-rt;,%its-rp;))) | (%its-rbc;,%its-rtc;,(%its-rtc;)?))>
<!ATTLIST %its-ruby;
 %its.att.local.no-ns.attributes;
xmlns CDATA "http://www.w3.org/2005/11/its" 
xmlns:its CDATA "http://www.w3.org/2005/11/its"  >
<!--doc:Rule about the Ruby data category. -->
<!ELEMENT %its-rubyRule; (%its-rubyText;)?>
<!ATTLIST %its-rubyRule;
 %its.att.selector.attributes;
rubyPointer CDATA #IMPLIED
rtPointer CDATA #IMPLIED
rpPointer CDATA #IMPLIED
rbcPointer CDATA #IMPLIED
rtcPointer CDATA #IMPLIED
rbspanPointer CDATA #IMPLIED >
<!--doc:Ruby text. -->
<!ELEMENT %its-rubyText;  (#PCDATA)>
<!ATTLIST %its-rubyText;
 %its.att.local.no-ns.attributes;
rbspan CDATA #IMPLIED >
<!--doc:Container for global rules. -->
<!ELEMENT %its-rules; (%its-translateRule; | %its-locNoteRule; | %its-termRule; | %its-dirRule; | %its-rubyRule; | %its-langRule; | %its-withinTextRule;)*>
<!ATTLIST %its-rules;
version CDATA "1.0" 
xmlns CDATA "http://www.w3.org/2005/11/its" 
xmlns:its CDATA "http://www.w3.org/2005/11/its" 
xlink:href CDATA #IMPLIED
xlink:type (simple) #IMPLIED >
<!--doc:Inline element to contain ITS information. -->
<!ELEMENT %its-span; ( #PCDATA | %its-ruby; | %its-span;)*>
<!ATTLIST %its-span;
 %its.att.local.no-ns.attributes;
xmlns CDATA "http://www.w3.org/2005/11/its" 
xmlns:its CDATA "http://www.w3.org/2005/11/its"  >
<!--doc:Rule about the Terminology data category. -->
<!ELEMENT %its-termRule; EMPTY>
<!ATTLIST %its-termRule;
 %its.att.selector.attributes;
term (yes|no) #REQUIRED
termInfoRef CDATA #IMPLIED
termInfoRefPointer CDATA #IMPLIED
termInfoPointer CDATA #IMPLIED >
<!--doc:Rule about the Translate data category. -->
<!ELEMENT %its-translateRule; EMPTY>
<!ATTLIST %its-translateRule;
 %its.att.selector.attributes;
translate (yes|no) #REQUIRED >
<!--doc:Rule about the Elements Within Text data category. -->
<!ELEMENT %its-withinTextRule; EMPTY>
<!ATTLIST %its-withinTextRule;
 %its.att.selector.attributes;
withinText (yes|no|nested) #REQUIRED >
<!-- end elements -->
