Hi Paul,
Thank you very much for your helpfull response.
> What editor are you using? It really should be able to handle this.
I'm using IntelliJ IDEA development environment. Its primary focus is
Java development but it has an XML mode too.
Uhm, but maybe I'm using the DTD incorrectly? Inside one of the
included DTD modules, it says this:
In DTD driver files referring to this module, please use an
entity
declaration that uses the public identifier shown below:
<!ENTITY % dbnotn PUBLIC
"-//OASIS//ENTITIES DocBook XML Notations V4.1.2//EN"
"dbnotnx.mod">
%dbnotn;
Seems like the docbook DTDs are made such that I can customize the use
of docbook. This I get from this text in the main DTD:
For example, if your document's top-level element is Book, and
you are using DocBook directly, use the FPI in the DOCTYPE
declaration:
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd"
[...]>
Or, if you have a higher-level driver file that customizes
DocBook,
use the FPI in the parameter entity declaration:
<!ENTITY % DocBookDTD PUBLIC "-//OASIS//DTD DocBook XML
V4.1.2//EN"
"http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd">
%DocBookDTD;
But in my docbook source, I simply have this simple DOCTYPE in the
top:
<?xml version='1.0'?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
Can (or should) I specificly import the DTD modules, maybe by chosing
between only some, if I only need some!?
> Simplified DocBook is distributed with a flattened DTD, but if you
> need the full DocBook DTD, you could try Norm Walsh's 'flatten' perl
> script:
>
> http://nwalsh.com/perl/flatten/index.html
Thanks. Had a go on it, and after hacking a bit, I got it to eat the
4.1.2 docbook dtds. So now I have a flattened version. And it works in
my editor.
Great!
> > Or is there a good editor, which supports this format of DTDs?
>
> There sure is: emacs with either PSGML or nxml-mode.
Oh yeah emacs. Maybe I will go back to using emacs for docbook edit.
Seems like I always come back to that great editor
Regards, Per