xinclude validation error
-
- Posts: 4
- Joined: Fri Feb 19, 2016 5:43 pm
xinclude validation error
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
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: xinclude validation error
Hi,
The xi prefix should be bound to the namespace http://www.w3.org/2001/XInclude:
https://www.w3.org/TR/xinclude/
so this should work:
Regards,
Radu
The xi prefix should be bound to the namespace http://www.w3.org/2001/XInclude:
https://www.w3.org/TR/xinclude/
so this should work:
Code: Select all
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="tei_header.xml" parse="xml"/>
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
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