Hello.
Here is my experience in using sgmls with the TEI (not litetei,...).
Here is my TEI directory:
$HOME/TEI/dtd
$HOME/TEI/ent
$HOME/TEI/wsd
$HOME/TEI/lite
I have an environment variable SGML_PATH using by sgmls to search for dtd files
and set :
setenv SGML_PATH $HOME/TEI/dtd/%S:$HOME/TEI/ent/%S:$HOME/TEI/wsd/%S
To use with the TEI lite just add :$HOME/TEI/lite/%S at the end of the setting
SGML_PATH variable.
This works when i try :
sgmls testfile.sgml
with the file testfile.sgml:
===================================================
<!SGML "ISO 8879:1986"
CHARSET
BASESET "ISO 646-1983//CHARSET
International Reference Version (IRV)//ESC 2/5 4/0"
DESCSET 0 9 UNUSED
9 1 9
10 1 10
11 2 UNUSED
13 1 13
14 12 UNUSED
26 1 UNUSED
27 5 UNUSED
32 95 32
127 1 UNUSED
CAPACITY
SGMLREF
TOTALCAP 10000000
ENTCAP 500000
ENTCHCAP 500000
ELEMCAP 500000
GRPCAP 1000000
EXGRPCAP 500000
EXNMCAP 500000
ATTCAP 500000
ATTCHCAP 500000
AVGRPCAP 500000
NOTCAP 500000
NOTCHCAP 500000
IDCAP 500000
IDREFCAP 500000
MAPCAP 500000
LKSETCAP 500000
LKNMCAP 500000
SCOPE DOCUMENT
SYNTAX
SHUNCHAR CONTROLS 0 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
127 255
BASESET "ISO 646-1983//CHARSET
International Reference Version (IRV)//ESC 2/5 4/0"
DESCSET 0 128 0
FUNCTION RE 13
RS 10
SPACE 32
TAB SEPCHAR 9
-- EOF SEPCHAR 26 --
NAMING LCNMSTRT ""
UCNMSTRT ""
LCNMCHAR "-."
UCNMCHAR "-."
NAMECASE GENERAL YES
ENTITY NO
DELIM GENERAL SGMLREF
SHORTREF SGMLREF
NAMES SGMLREF
QUANTITY SGMLREF
ENTLVL 32
NAMELEN 32
LITLEN 2048
GRPCNT 253
GRPGTCNT 180
TAGLVL 24
FEATURES
MINIMIZE DATATAG NO OMITTAG YES RANK NO SHORTTAG YES
LINK SIMPLE NO IMPLICIT NO EXPLICIT NO
OTHER CONCUR NO SUBDOC NO FORMAL NO
APPINFO NONE>
<!-- end of the SGML Declaration -->
<!-- start of the SGML DTD -->
<!DOCTYPE TEI.2 system 'tei2.dtd' [
<!ENTITY % TEI.prose 'INCLUDE' >
<!-- pour les phrases -->
<!ENTITY % TEI.analysis 'INCLUDE' >
<!-- pour les alignements -->
<!ENTITY % TEI.linking 'INCLUDE' >
<!-- declaration lingua -->
<!ENTITY target.TEI "testfile2.sgml" >
]>
<!-- end of the SGML DTD, and also the SGML Prolog -->
<tei.2>
<teiHeader type=text>
<fileDesc>
<titleStmt>
<title>A Test File</title>
<author>pat bonhomme</author>
</titleStmt>
<publicationStmt>
<publisher>The Hello, World Press</publisher>
</publicationStmt>
<sourceDesc>
<bibl>Created directly as TEI-compliant SGML source text.</bibl>
</sourceDesc>
</fileDesc>
<profileDesc>
<langUsage>
<language>English</language>
</langUsage>
<textClass>
<keywords>
<list>
<item>prose</item>
<item></item>
</list>
</keywords>
</textClass>
</profileDesc>
</teiHeader>
<text>
<body>
<div type="fs">
<p>
<s id="d1p1s1">Hello, TEI!</s>
<s id="d1p1s2">Hello, TEI! again</s>
</p>
</div>
<div type="fs">
<p>
<s id="d1p2s1">Bye, TEI!</s>
</p>
</div>
</body>
<linkGrp type="Francais.Angais" targType="s" targOrder="Y" evaluate="all"
crdate="18 Apr 1995" doc="target.TEI">
<xptr id="x1" from="ID (d1p1s1)">
<link id="l1" type="linking" targets="d1p1s1 d1p1s2">
<link targets="d1p1s1 x1">
<link targets="d1p1s2 l1">
</linkGrp>
</text>
</tei.2>
===================================================
********************************************************
* [log in to unmask] * Office : B.228 *
* http://www.loria.fr/~bonhomme * Phone : 83 59 20 37 *
********************************************************
|