Defining XML Entities in FOP 2.2

Jens Hofschröer <[email protected]>
Newsgroups gmane.text.xml.fop.user
Message-ID <[email protected]>
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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.