1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282
|
<!-- TMX (Translation Memory eXchange)
Known as "-//LISA OSCAR:1998//DTD for Translation Memory eXchange//EN"
Use in TMX: <!DOCTYPE tmx SYSTEM "tmx14.dtd">
An SGML application conforming to:
- International Standard ISO 8879 Standard Generalized Markup Language,
- XML (Extensible Markup Language), W3C Recommendation
All TMX element and attribute names must be in lowercase.
-->
<!-- version 1.4 ==========================================================
modifications Jul-10-2002 by YS (from conference call motion)
- reverse x to optional (version 1.4a)
modifications Jun-05-2002 by YS (from Washington meeting follow-up)
- deprecated the <ut> element
- made x required
- Becomes TMX version 1.4
======================================================================= -->
<!-- version 1.3 ==========================================================
modifications Nov-08-2001 by YS (corrections)
- added fixed value for version value of <tmx> element
modifications Sep-05-2001 by YS (corrections)
- put back lang in the DTD for backward compatibility
modifications Aug-29-2001 by YS (corrections)
- lang is deprecated and replaced by xml:lang
- Becomes TMX version 1.3
======================================================================= -->
<!-- version 1.2 ==========================================================
modifications Jun-26-2001 by YS (corrections)
- removed extra comma after #IMPLIED for datatype for <sub>
- added missing * for <hi>
modifications May-11-2000 by YS (corrections)
- type added to <sub>
modifications May-10-2000 by YS (from Shigemichi corrections)
- <sub> cannot be in <seg> and <hi>
- datatype added to <sub>
modifications May-05-2000 by YS (from Washington meeting action items)
- Added the optional <hi> element in <seg>, to allow user-defined markers.
- TMX readers should now support UTF-8
- Becomes TMX version 1.2
======================================================================= -->
<!-- version 1.1 ==========================================================
modifications Apr-23-1999 by YS (from Boston meeting action items)
- Added "block" to the list of segtypes allowed
modifications Aug-12-1998 by JH
- Update to Final TMX 1.1 version
modifications Jun-12-1998 by JH
- added entities amp, gt, lt, quot and apos for backwards compatibility
with SGML tools.
modifications Jun-11-1998 by YS (from Granada meeting action items)
- srclang is now mandatory in <header>
- added creationtoolversion attribute
- replaced <bm>/<em>/<ph>/<be>/<ee> by <bsf>/<esf>/<it>/<bpt>/<ept>
- added pos and assoc attributes to <it>
modifications Apr-10-1998 by YS
- changed n attribute in <be>, <ee>, <bm>, <em> and <ph> to i and x
- removed the match attribute from <tu>
- made various sgml syntax corrections
modifications Apr-07-1998 by JH
- changed the attribute for <tu> from id to tuid
modifications Mar-31-1998 by JH changed:
- changed match attribute to NUMBER
- note: we still get a warning from nsgmls: NUMBER or NUMBERS declared value
modifications Mar-25-1998 by YS (from Salt-Lake City meeting action items)
- added the "-//" for non-registered DTD name
- added note about lowercase requirement
- added base attribute to <ude>
- removed the <meta> element
- renamed name attribute of <prop> by type
- added <be>, <ee>, <bm>, <em> and <ph> elements (Content)
- add the match attribute to <tu>
modifications Nov-25-1997 by YS
- synchronized <TU> and <TUV> for CREATIONTOOL and DATATYPE
modifications Nov-24-1997 by YS
- corrected CODESET into O-ENCODING for the <NOTE> element
modifications Nov-22-1997 by YS (from San-Diego meeting action items)
- added <BODY>, <UDE> and <MAP/> element
- replaced NMTOKEN by CDATA for all NAME attributes
- renamed xxxUSER attributes into xxxID
- removed DIRECTIONS attribute
- renamed ORIGINAL into SRCLANG
- renamed CODESET into O-ENCODING
- added O-TMF attribute for <HEADER>
- added SEGTYPE attribute for <HEADER> and <TU>
- added ADMINLANG attribute in <HEADER>
modifications Sep-16-1997 by YS
- replaced "" by #implied for user-type and id attributes
modifications Sep-12-1997 by AKM
- added delimiters between content constituents of tu and tuv
- removed parens around "EMPTY" in definition of meta
======================================================================= -->
<!ENTITY lt "&#60;" >
<!ENTITY amp "&#38;" >
<!ENTITY gt ">" >
<!ENTITY apos "'" >
<!ENTITY quot """ >
<!ENTITY % segtypes "block|paragraph|sentence|phrase" >
<!-- ELEM CONTENT -->
<!-- ATTR
NAME TYPE DEFAULT -->
<!-- Base Document Element -->
<!ELEMENT tmx (header, body) >
<!ATTLIST tmx
version CDATA #FIXED "1.4" >
<!-- Header -->
<!ELEMENT header (note|prop|ude)* >
<!ATTLIST header
creationtool CDATA #REQUIRED
creationtoolversion CDATA #REQUIRED
segtype (%segtypes;) #REQUIRED
o-tmf CDATA #REQUIRED
adminlang CDATA #REQUIRED
srclang CDATA #REQUIRED
datatype CDATA #REQUIRED
o-encoding CDATA #IMPLIED
creationdate CDATA #IMPLIED
creationid CDATA #IMPLIED
changedate CDATA #IMPLIED
changeid CDATA #IMPLIED >
<!-- Body -->
<!ELEMENT body (tu*) >
<!-- No attributes -->
<!-- Note -->
<!ELEMENT note (#PCDATA) >
<!ATTLIST note
o-encoding CDATA #IMPLIED
xml:lang CDATA #IMPLIED
lang CDATA #IMPLIED >
<!-- lang is deprecated: use xml:lang -->
<!-- User-defined Encoding -->
<!ELEMENT ude (map+) >
<!ATTLIST ude
name CDATA #REQUIRED
base CDATA #IMPLIED >
<!-- Note: the base attribute is required if one or more <map>
elements in the <ude> contain a code attribute. -->
<!-- Character mapping -->
<!ELEMENT map EMPTY >
<!ATTLIST map
unicode CDATA #REQUIRED
code CDATA #IMPLIED
ent CDATA #IMPLIED
subst CDATA #IMPLIED >
<!-- Property -->
<!ELEMENT prop (#PCDATA) >
<!ATTLIST prop
type CDATA #REQUIRED
xml:lang CDATA #IMPLIED
o-encoding CDATA #IMPLIED
lang CDATA #IMPLIED >
<!-- lang is deprecated: use xml:lang -->
<!-- Translation Unit -->
<!ELEMENT tu ((note|prop)*, tuv+) >
<!ATTLIST tu
tuid CDATA #IMPLIED
o-encoding CDATA #IMPLIED
datatype CDATA #IMPLIED
usagecount CDATA #IMPLIED
lastusagedate CDATA #IMPLIED
creationtool CDATA #IMPLIED
creationtoolversion CDATA #IMPLIED
creationdate CDATA #IMPLIED
creationid CDATA #IMPLIED
changedate CDATA #IMPLIED
segtype (%segtypes;) #IMPLIED
changeid CDATA #IMPLIED
o-tmf CDATA #IMPLIED
srclang CDATA #IMPLIED >
<!-- Translation Unit Variant -->
<!ELEMENT tuv ((note|prop)*, seg) >
<!ATTLIST tuv
xml:lang CDATA #REQUIRED
o-encoding CDATA #IMPLIED
datatype CDATA #IMPLIED
usagecount CDATA #IMPLIED
lastusagedate CDATA #IMPLIED
creationtool CDATA #IMPLIED
creationtoolversion CDATA #IMPLIED
creationdate CDATA #IMPLIED
creationid CDATA #IMPLIED
changedate CDATA #IMPLIED
o-tmf CDATA #IMPLIED
changeid CDATA #IMPLIED
lang CDATA #IMPLIED >
<!-- lang is deprecated: use xml:lang -->
<!-- Text -->
<!ELEMENT seg (#PCDATA|bpt|ept|ph|it|hi|ut)* >
<!-- Content Markup ================================================== -->
<!ELEMENT bpt (#PCDATA|sub)* >
<!ATTLIST bpt
i CDATA #REQUIRED
x CDATA #IMPLIED
type CDATA #IMPLIED >
<!ELEMENT ept (#PCDATA|sub)* >
<!ATTLIST ept
i CDATA #REQUIRED >
<!ELEMENT sub (#PCDATA|bpt|ept|it|ph|hi|ut)* >
<!ATTLIST sub
datatype CDATA #IMPLIED
type CDATA #IMPLIED >
<!ELEMENT it (#PCDATA|sub)* >
<!ATTLIST it
pos (begin|end) #REQUIRED
x CDATA #IMPLIED
type CDATA #IMPLIED >
<!ELEMENT ph (#PCDATA|sub)* >
<!ATTLIST ph
x CDATA #IMPLIED
assoc CDATA #IMPLIED
type CDATA #IMPLIED >
<!ELEMENT hi (#PCDATA|bpt|ept|it|ph|hi|ut)* >
<!ATTLIST hi
x CDATA #IMPLIED
type CDATA #IMPLIED >
<!-- The <ut> element is deprecated -->
<!ELEMENT ut (#PCDATA|sub)* >
<!ATTLIST ut
x CDATA #IMPLIED >
<!-- End -->
|