Hi
Since FOP 2.2 it is no longer allowed to use a DOCTYPE declaration[1].
An issue originally only disallowing the loading of external DTDs.
We are using FOP to transform a Docbook document separated in several
files. Each of these files uses a local "settings.dtd" with common XML
Entities used across the whole document. This is no longer possible with
FOP 2.2. Even a simple DOCTYPE declaration without any file reference is
disallowed now.
The following error occurs if you have any DOCTYPE in your document(s):
> javax.xml.transform.TransformerException: DOCTYPE is disallowed when
the feature "http://apache.org/xml/features/disallow-doctype-decl" set
to true.
For Docbook these XML Entities are a common and documented[2] way to use
"constants" across your document. So please allow the use of internal
DOCTYPE and/or the use of local DTDs.
Greetings
Jens Hofschröer
[1] https://issues.apache.org/jira/browse/FOP-2668
[2] http://www.sagehill.net/docbookxsl/Db5Entities.html
--
http://blog.nigjo.de/netbeans/
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org