teiCorpus
This should cover W3C XML Schema, Relax NG and DTD related problems.
teiCorpus
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?
<?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?
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:
Best Regards,
George
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>
George
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service