Master file support for TEI documents
Posted: Sun Jul 08, 2018 7:17 pm
I'm trying to apply oXygen's master file support to TEI documents, but that doesn't seem to work. I've noticed one old question in the forum topic13310.html?hilit=tei%20master but the instructions provided there still don't seem to help.
I have a project in which the master file support is enabled. Then I have a file called master.xml which is recognized by oXygen as a master. Inside the body element it includes an external segment:
The file entry.xml looks like this:
When I try to validate the master file, oXygen will tell me:
even though the element entry is of course allowed right there. I already have one entry element in the master file — to show that it should work. Similarly, if I try to validate entry.xml, it will give me the same error.
My external module has the TEI namespace so that shouldn't be a problem.
What am I doing wrong?
I am attaching a link to a folder which contains the above set up for testing purposes.
https://www.dropbox.com/s/aey3ldjk1lz68 ... i.zip?dl=0
Any tips would be greatly appreciated.
I have a project in which the master file support is enabled. Then I have a file called master.xml which is recognized by oXygen as a master. Inside the body element it includes an external segment:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng" type="application/xml"
schematypens="http://purl.oclc.org/dsdl/schematron"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0">
<teiHeader>
<fileDesc>
<titleStmt>
<title>Title</title>
</titleStmt>
<publicationStmt>
<p>Publication Information</p>
</publicationStmt>
<sourceDesc>
<p>Information about the source</p>
</sourceDesc>
</fileDesc>
</teiHeader>
<text>
<body>
<entry>
<form>
<orth>entry-in-master-file</orth>
</form>
</entry>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="entry.xml"></xi:include>
</body>
</text>
</TEI>
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns:tei="http://www.tei-c.org/ns/1.0">
<form>
<orth>entry-in-module</orth>
</form>
</entry>
Code: Select all
element "entry" not allowed here; expected the element end-tag or element "ab", "addSpan", "alt", "altGrp", "anchor", "annotationBlock", "app", "argument", "bibl", "biblFull", "biblStruct", "byline", "camera", "caption", "castList", "cb", "certainty", "cit", "classSpec", "closer", "constraintSpec", "damageSpan", "dataSpec", "dateline", "delSpan", "desc", "div", "div1", "docAuthor", "docDate", "eTree", "eg", "elementSpec", "entry", "entryFree" ...
My external module has the TEI namespace so that shouldn't be a problem.
What am I doing wrong?
I am attaching a link to a folder which contains the above set up for testing purposes.
https://www.dropbox.com/s/aey3ldjk1lz68 ... i.zip?dl=0
Any tips would be greatly appreciated.