On Thu, 03 May 2001, you wrote:
> having an xml doc like this
> <!DOCTYPE book SYSTEM "../dtd/docbook_xml_4.1.2/docbookx.dtd" [
> <!ENTITY part1 SYSTEM "part1.xml">
> <!ENTITY part2 SYSTEM "part2.xml">
Bad idea to call them "part1" and "part2".
"chap1" and "chap2" would make more sense.
But syntactically this is correct.
> if i define entities like section1 in my part1.xml file its an error, because
> of two DTDeclarations in the parsed and completetd xml file.
You can declare section entities in your part1.xml
but you must remove the DOCTYPE declaration and move
the section entity declarations into the main file
before you can combine them.
This has been a problem for 15 years, I'm afraid.
> Is there a way to achieve a big document, but keep the parts well formed, so
> you can handle only the parts, like transforming only one chapter to pure
Keep a separate DOCTYPE declaration on each chapter file
so that you can declare section entities in it (and do
the same for the section files if you want). Do all your
editing with these files. Then write a script which takes
off the DOCTYPE declarations, copies the entity declarations
into the internal subset of the main file's DOCTYPE
declaration, and saves the files. If you wanted to be
cunning, you'd use a catalog and swap the names to locations
so you worked on copies of the files instead.
Or just use a big editor so you don't need separate files...