xinclude validation error
Posted: Fri Feb 19, 2016 6:21 pm
I have 51 tei documents with dictionary entries.
I have a separate header file:
yet i keep getting validation error:
element "xi:include" not allowed here; expected the element end-tag or element "facsimile", "fsdDecl", "sourceDoc", "teiHeader" or "text"
xincludes are activated in Preferences->XML / XML Parser
Master files is enabled, and the header file is it.
When manually replace the xinclude element with a copy of the contents of tei_header.xml everything validates fine.
What am i missing
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" xml:lang="en">
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="/../tei_header.xml" parse="xml"/>
<text>
<body>
<entry/><!-- Lots of entries -->
</body>
</text>
</TEI>
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"?>
<teiHeader xmlns="http://www.tei-c.org/ns/1.0" xml:lang="en">
<fileDesc/><!-- Stuff here -->
</teiHeader>
element "xi:include" not allowed here; expected the element end-tag or element "facsimile", "fsdDecl", "sourceDoc", "teiHeader" or "text"
xincludes are activated in Preferences->XML / XML Parser
Master files is enabled, and the header file is it.
When manually replace the xinclude element with a copy of the contents of tei_header.xml everything validates fine.
What am i missing