validate entities within a subdocument
Posted: Wed Feb 01, 2006 2:35 pm
Hi!
I'm working on a docbook project, which splits up a book into separate files for each chapter. We would like to use entities for several centralized parameters. However, Oxygen does not validate the subdocuments, since all entities are loaded in the "main"-file. It is unable to find the declaration of the entities (but I can render it without any problem).
entities.ent:
ourbook.xml:
chapter1.xml:
Is there any way to get Oxygen validate this structure?
I'm working on a docbook project, which splits up a book into separate files for each chapter. We would like to use entities for several centralized parameters. However, Oxygen does not validate the subdocuments, since all entities are loaded in the "main"-file. It is unable to find the declaration of the entities (but I can render it without any problem).
entities.ent:
Code: Select all
<!ENTITY javadoc "http://java.sun.com/j2se/1.4.2/docs/api/index.html">
[...]
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
<!ENTITY Chapter1 SYSTEM "chapter1.xml">
<!ENTITY % entities SYSTEM "../entities.ent">
%entities;
]>
<book>
[...]
&Chapter1;
[...]
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<chapter id="chapter1">
[..]
<para>Further information can be looked up at &javadoc;</para>
[...]