Project

Profile

Help

Bug #5145

closed

Logging of unsupported ACCESS_EXTERNAL_DTD when transforming through a JAXBSource

Added by Mário Martinho Dias about 3 years ago. Updated about 3 years ago.

Status:
Rejected
Priority:
Low
Assignee:
Category:
JAXP Java API
Sprint/Milestone:
-
Start date:
2021-10-26
Due date:
% Done:

0%

Estimated time:
Legacy ID:
Applies to branch:
10
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:

Description

Support for the property http://javax.xml.XMLConstants/property/accessExternalDTD was introduced in Saxon 10.3 (see #4729).

But when using a transformation with a JAXBSource, Saxon logs to standard error:

Selected XML parser javax.xml.bind.util.JAXBSource$1 does not recognize the property http://javax.xml.XMLConstants/property/accessExternalDTD

Multiple frameworks/libraries, namely Spring Framework, initialize their TransformerFactories with this property set.

This was unexpected behavior, and the only workaround I've found is suppressing the message through a custom net.sf.saxon.lib.Logger which seems hackish, transformations function normally otherwise.

I've attached a sample test project with a unit test.


Files

saxontest.zip (3.25 KB) saxontest.zip Test project Mário Martinho Dias, 2021-10-26 13:19

Please register to edit this issue

Also available in: Atom PDF