Page 1 of 1

teiCorpus

Posted: Mon Jul 04, 2005 2:06 am
by markspace
I'm trying to create a teiCorpus (collection of TEI texts). I have:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE teiCorpus.2 PUBLIC "-//TEI P4//ELEMENTS TEI Lite XML ver. 1//EN"
"http://www.tei-c.org/Lite/DTD/teixlite.dtd"
>
<teiCorpus.2>
<TEI.2>
....
</TEI.2>
<TEI.2>
....
</TEI.2>
</teiCorpus.2>

and the validate button gives the following error:
Element type teiCorpus.2 must be declared

teiCorpus.2 is defined in the same place as TEI.2 (tei2.dtd), so what am I missing?

Posted: Mon Jul 04, 2005 9:23 am
by george
Hi,

The lite version of teixlite.dtd does not contain a declaration of the teiCorpus.2 element, if you try to search that in the DTD you will get no occurances.

Something like below should work:

Code: Select all


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE teiCorpus.2 PUBLIC "-//TEI P4//DTD Main Document Type//EN" "http://www.tei-c.org/Guidelines/DTD/tei2.dtd" [
<!ENTITY % TEI.prose 'INCLUDE'>
<!ENTITY % TEI.linking 'INCLUDE'>
<!ENTITY % TEI.figures 'INCLUDE'>
<!ENTITY % TEI.analysis 'INCLUDE'>
<!ENTITY % TEI.XML 'INCLUDE'>
<!ENTITY % ISOlat1 SYSTEM 'http://www.tei-c.org/Entity_Sets/Unicode/iso-lat1.ent'>
%ISOlat1;
<!ENTITY % ISOlat2 SYSTEM 'http://www.tei-c.org/Entity_Sets/Unicode/iso-lat2.ent'>
%ISOlat2;
<!ENTITY % ISOnum SYSTEM 'http://www.tei-c.org/Entity_Sets/Unicode/iso-num.ent'>
%ISOnum;
<!ENTITY % ISOpub SYSTEM 'http://www.tei-c.org/Entity_Sets/Unicode/iso-pub.ent'>
%ISOpub;
]>
<teiCorpus.2>
<teiHeader>
<fileDesc>
<titleStmt>
<title></title>
</titleStmt>
<publicationStmt>
<p></p>
</publicationStmt>
<sourceDesc>
<p></p>
</sourceDesc>
</fileDesc>
</teiHeader>
<TEI.2>
<teiHeader>
<fileDesc>
<titleStmt>
<title></title>
</titleStmt>
<publicationStmt>
<!-- one of (address authority availability date distributor idno p pubPlace publisher) -->
<p>Publication statement goes here.</p>
</publicationStmt>
<sourceDesc>
<!-- one of (bibl biblFull biblStruct listBibl p recordingStmt scriptStmt) -->
<p>Source description goes here.</p>
</sourceDesc>
</fileDesc>
</teiHeader>
<text>
<body>
<p>A paragraph goes here.</p>
</body>
</text>
</TEI.2>
</teiCorpus.2>
Best Regards,
George