<!-- teiwsd2.dtd:  written by OddDTD 1999-05-18               -->

<!-- 25.1:  Writing System Declaration                        -->
<!-- Text Encoding Initiative: Guidelines for Electronic      -->
<!-- Text Encoding and Interchange. Document TEI P3, 1994.    -->
<!-- Copyright (c) 1994 ACH, ACL, ALLC. Permission to copy    -->
<!-- in any form is granted, provided this notice is          -->
<!-- included in all copies.                                  -->
<!-- These materials may not be altered; modifications to     -->
<!-- these DTDs should be performed as specified in the       -->
<!-- Guidelines in chapter "Modifying the TEI DTD."           -->
<!-- These materials subject to revision. Current versions    -->
<!-- are available from the Text Encoding Initiative.         -->
<!ENTITY % INHERITED '#IMPLIED'                                 >
<!ENTITY % ISO-date 'CDATA'                                     >
<!-- Embed entities for TEI generic identifiers.              -->
<!ENTITY % TEI.wsdNames system 'wdgis2.ent'                     >
%TEI.wsdNames;
<!ENTITY % a.global '
          id                 ID                  #IMPLIED
          lang               CDATA               %INHERITED'    >
<!ENTITY % writingSystemDeclaration 'INCLUDE' >
<![ %writingSystemDeclaration; [
<!ELEMENT %n.writingSystemDeclaration; 
                        - -  (%n.language;, %n.script;, 
                             (%n.direction)*, %n.characters;, 
                             (%n.note)*)                        >
<!ATTLIST %n.writingSystemDeclaration;
                             %a.global;
          name               CDATA               #REQUIRED
          date               %ISO-date           #REQUIRED
          TEIform            CDATA               'writingSystemDeclaration'
                                                                >
]]>

<!-- 25.2:  Language identification                           -->
<!ENTITY % language 'INCLUDE' >
<![ %language; [
<!ELEMENT %n.language;  - O  (#PCDATA)                          >
<!ATTLIST %n.language;       %a.global;
          iso639             CDATA               #REQUIRED
          TEIform            CDATA               'language'     >
]]>

<!-- (end of 25.2)                                            -->
<!-- 25.3:  Script and writing direction                      -->
<!ENTITY % script 'INCLUDE' >
<![ %script; [
<!ELEMENT %n.script;    - O  (#PCDATA)                          >
<!ATTLIST %n.script;         %a.global;
          TEIform            CDATA               'script'       >
]]>

<!ENTITY % direction 'INCLUDE' >
<![ %direction; [
<!ELEMENT %n.direction; - O  EMPTY                              >
<!ATTLIST %n.direction;      %a.global;
          lines              CDATA               #REQUIRED
          chars              CDATA               #REQUIRED
          TEIform            CDATA               'direction'    >
]]>

<!-- (end of 25.3)                                            -->
<!-- 25.4.1:  Base components                                 -->
<!ENTITY % characters 'INCLUDE' >
<![ %characters; [
<!ELEMENT %n.characters; 
                        - O  ((%n.codedCharSet)*, 
                             (%n.baseWsd)*, (%n.entitySet)*, 
                             (%n.exceptions)?)                  >
<!ATTLIST %n.characters;     %a.global;
          TEIform            CDATA               'characters'   >
]]>

<!ENTITY % a.baseStandard '
          name               CDATA               #REQUIRED
          authority          (tei | iso | national | private | 
                             none)               #REQUIRED'     >
<!ENTITY % codedCharSet 'INCLUDE' >
<![ %codedCharSet; [
<!ELEMENT %n.codedCharSet; 
                        - O  EMPTY                              >
<!ATTLIST %n.codedCharSet;   %a.global;
                             %a.baseStandard;
          TEIform            CDATA               'codedCharSet' >
]]>

<!ENTITY % baseWsd 'INCLUDE' >
<![ %baseWsd; [
<!ELEMENT %n.baseWsd;   - O  EMPTY                              >
<!ATTLIST %n.baseWsd;        %a.global;
                             %a.baseStandard;
          TEIform            CDATA               'baseWsd'      >
]]>

<!ENTITY % entitySet 'INCLUDE' >
<![ %entitySet; [
<!ELEMENT %n.entitySet; - O  EMPTY                              >
<!ATTLIST %n.entitySet;      %a.global;
                             %a.baseStandard;
          TEIform            CDATA               'entitySet'    >
]]>

<!-- (end of 25.4.1)                                          -->
<!-- 25.4.2:  Exceptions to the base components               -->
<!ENTITY % exceptions 'INCLUDE' >
<![ %exceptions; [
<!ELEMENT %n.exceptions; 
                        - O  ((%n.character)*)                  >
<!ATTLIST %n.exceptions;     %a.global;
          TEIform            CDATA               'exceptions'   >
]]>

<!ENTITY % character 'INCLUDE' >
<![ %character; [
<!ELEMENT %n.character; - O  ((%n.desc)*, (%n.form)+, 
                             (%n.note)*)                        >
<!ATTLIST %n.character;      %a.global;
          class              (lexical | punc | lexpunc | digit 
                             | space | DL | LD | dia | joiner | 
                             other)              lexical
          TEIform            CDATA               'character'    >
]]>

<!ENTITY % desc 'INCLUDE' >
<![ %desc; [
<!ELEMENT %n.desc;      - O  (#PCDATA)                          >
<!ATTLIST %n.desc;           %a.global;
          TEIform            CDATA               'desc'         >
]]>

<!ENTITY % form 'INCLUDE' >
<![ %form; [
<!ELEMENT %n.form;      - O  ((%n.desc)+, (%n.figure; | 
                             %n.extFigure;)*, (%n.note)*)       >
<!ATTLIST %n.form;           %a.global;
          string             CDATA               #IMPLIED
          entityStd          ENTITIES            #IMPLIED
          entityLoc          ENTITIES            #IMPLIED
          ucs-4              CDATA               #IMPLIED
          afiicode           CDATA               #IMPLIED
          codedCharSet       IDREF               #IMPLIED
          TEIform            CDATA               'form'         >
]]>

<!ENTITY % figure 'INCLUDE' >
<![ %figure; [
<!ELEMENT %n.figure;    - -  CDATA                              >
<!ATTLIST %n.figure;         %a.global;
          notation           NAME                #REQUIRED
          TEIform            CDATA               'figure'       >
]]>

<!ENTITY % extFigure 'INCLUDE' >
<![ %extFigure; [
<!ELEMENT %n.extFigure; - O  EMPTY                              >
<!ATTLIST %n.extFigure;      %a.global;
          notation           NAME                #REQUIRED
          entity             ENTITY              #REQUIRED
          TEIform            CDATA               'extFigure'    >
]]>

<!-- (end of 25.4.2)                                          -->
<!-- 25.5:  Notes                                             -->
<!ENTITY % note 'INCLUDE' >
<![ %note; [
<!ELEMENT %n.note;      - O  (#PCDATA)                          >
<!ATTLIST %n.note;           %a.global;
          TEIform            CDATA               'note'         >
]]>

<!-- (end of 25.5)                                            -->
<!-- (end of 25.1)                                            -->
