Defining XML Entities in FOP 2.2

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Defining XML Entities in FOP 2.2

Jens Hofschröer
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Defining XML Entities in FOP 2.2

Glenn Adams-2
Since the XSLT front end functionality in FOP serves merely as a convenience function for the user, you may choose to use alternative tools not integrated into FOP as your front end. I suggest you do this in order to transform from your input data set into XSL-FO input files which you can feed directly to FOP without making use of the the XSLT front end found in FOP that does not support XML Entities.

Regards,
Glenn

On Tue, May 16, 2017 at 5:54 AM, Jens Hofschröer <[hidden email]> wrote:
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: [hidden email]
For additional commands, e-mail: [hidden email]