users@jaxb.java.net

modular XML with headers ??

From: Felipe Gaúcho <fgaucho_at_gmail.com>
Date: Sun, 11 Jan 2009 12:00:08 +0100

I am producing a docbook document.. and everything works fine.. but:

In my master document I have:

<?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 bibliography SYSTEM "bibliography.xml">
...
&bibliography; <------- Here is the problem
...

If I create the bibliography.xml file without any header, it works:

<?xml version="1.0" encoding="UTF-8"?>
<bibliography>
 ....

But if I include the file model, it doesn't work anymore:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE bibliography PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
          "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
<bibliography>
 ...

Is there a way to include the header in each xml file and then compile
the master ?

xlink ? ot other solution ?