1<!-- 2 3 $Id: transpec.dtd,v 1.1.1.1.2.1 1996/12/22 15:32:27 joerg Exp $ 4 5 Copyright (C) 1996 6 John R. Fieber. All rights reserved. 7 8 Redistribution and use in source and binary forms, with or without 9 modification, are permitted provided that the following conditions 10 are met: 11 1. Redistributions of source code must retain the above copyright 12 notice, this list of conditions and the following disclaimer. 13 2. Redistributions in binary form must reproduce the above copyright 14 notice, this list of conditions and the following disclaimer in the 15 documentation and/or other materials provided with the distribution. 16 17 THIS SOFTWARE IS PROVIDED BY JOHN R. FIEBER AND CONTRIBUTORS ``AS IS'' AND 18 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 ARE DISCLAIMED. IN NO EVENT SHALL JOHN R. FIEBER OR CONTRIBUTORS BE LIABLE 21 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 SUCH DAMAGE. 28 29--> 30 31<!-- 32 33This DTD defines the format for instant(1) translation specification 34files. A translation specification contains: 35 36 * Character mappings, useful for dealing with characters that 37 are magic for the formatter, such as backslash (\) is for 38 TeX. 39 40 * Sdata mappings. For example, the ISO entity sets define 41 special characters as sdata string, ö is [ouml ]. These 42 sdata strings are marked in the output of the sgml parser 43 and the mapping turn them into something useful for the 44 formatter. 45 46 * A set of translation rules. 47 48See the transpec(5) man page for details. 49 50--> 51 52<!ELEMENT transpec - - ((cmap | smap | var)*, rule+)> 53 54<!ELEMENT (cmap, smap) - - (map*)> 55<!ATTLIST (cmap, smap) id ID #IMPLIED> 56 57<!ELEMENT map - o EMPTY> 58<!ATTLIST map from CDATA #REQUIRED 59 to CDATA #REQUIRED> 60 61<!ELEMENT var - o (#PCDATA)> 62 63<!-- 64A rule consists of an expression to determine if the rule should 65be applied to a given element (match), and the action that should 66be taken if the element matches. Each rule can be named. The 67cmap and smap attributes can specify an alternate to the default 68character and data mapping. 69--> 70 71<!ELEMENT rule - o (match, action?)> 72<!ATTLIST rule id CDATA #IMPLIED -- XXX should be ID notCDATA --> 73 74<!ELEMENT match - o (gi | attval | content | context | nthchild 75 | pattset | relation | varval | varreval)+> 76<!ELEMENT gi - o (#PCDATA)> 77<!ELEMENT attval - o (#PCDATA)> 78<!ELEMENT content - o (#PCDATA)> 79<!ELEMENT context - o (#PCDATA)> 80<!ELEMENT nthchild - o (#PCDATA)> 81<!ELEMENT pattset - o (#PCDATA)> 82<!ELEMENT relation - o (#PCDATA)> 83<!ELEMENT varval - o (#PCDATA)> 84<!ELEMENT varreval - o (#PCDATA)> 85 86 87<!ELEMENT action - o (do | end | ignore | incr | message | replace 88 | quit | set | start)+> 89<!ELEMENT do - o (#PCDATA)> 90<!ELEMENT end - - (#PCDATA)> 91<!ELEMENT ignore - o (#PCDATA)> 92<!ELEMENT incr - o (#PCDATA)> 93<!ELEMENT message - o (#PCDATA)> 94<!ELEMENT replace - - (#PCDATA)> 95<!ELEMENT quit - o (#PCDATA)> 96<!ELEMENT set - o (#PCDATA)> 97<!ELEMENT start - - (#PCDATA)> 98