including xinclude
Posted: Tue Apr 05, 2011 3:58 pm
Hi all,
Using oXygen 12.1.
I have, what I hope is, a simple problem/question. In the DTD declaration I would like to call my own driver file that adds a couple of things, including xinclude, to the "stock" DTD (DocBook XML 4.5). Like this...
<!DOCTYPE book SYSTEM "DTD/driver.dtd">
Here is my driver file...
<!-- DocBook 4.5 -->
<!ENTITY % docbook4.5 SYSTEM "docbook/xml/4.5/docbookx.dtd">
%docbook4.5;
<!-- DTD extensions -->
<!ENTITY % xinclude SYSTEM "docbook/xml/xinclude.mod">
%xinclude;
This works just fine for processing the document outside of oXygen. But, oXygen does not 'see' the xinclude information and complains that xi:include is an unexpected element.
It does work in oXygen if I declare it like this...
<!DOCTYPE book SYSTEM "DTD/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % xinclude SYSTEM "DTD/docbook/xml/xinclude.mod">
%xinclude;
]>
Is this an oXygen configuration/preferences thing? Any ideas?
Thanks in advance.
- Michael
Using oXygen 12.1.
I have, what I hope is, a simple problem/question. In the DTD declaration I would like to call my own driver file that adds a couple of things, including xinclude, to the "stock" DTD (DocBook XML 4.5). Like this...
<!DOCTYPE book SYSTEM "DTD/driver.dtd">
Here is my driver file...
<!-- DocBook 4.5 -->
<!ENTITY % docbook4.5 SYSTEM "docbook/xml/4.5/docbookx.dtd">
%docbook4.5;
<!-- DTD extensions -->
<!ENTITY % xinclude SYSTEM "docbook/xml/xinclude.mod">
%xinclude;
This works just fine for processing the document outside of oXygen. But, oXygen does not 'see' the xinclude information and complains that xi:include is an unexpected element.
It does work in oXygen if I declare it like this...
<!DOCTYPE book SYSTEM "DTD/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % xinclude SYSTEM "DTD/docbook/xml/xinclude.mod">
%xinclude;
]>
Is this an oXygen configuration/preferences thing? Any ideas?
Thanks in advance.
- Michael