xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jens Hofschröer <apa...@nigjo.de>
Subject Defining XML Entities in FOP 2.2
Date Tue, 16 May 2017 11:54:45 GMT

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.

Jens Hofschröer

[1] https://issues.apache.org/jira/browse/FOP-2668
[2] http://www.sagehill.net/docbookxsl/Db5Entities.html


To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org

View raw message