Project

Profile

Help

Bug #2551

closed

Reused source parser may be configured incorrectly

Added by Michael Kay over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Internals
Sprint/Milestone:
-
Start date:
2015-12-17
Due date:
% Done:

100%

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

Description

There is a problem which manifests itself particularly on .NET, but I think that under contrived circumstances it can also arise on the Java platform.

When the Sender calls the Configuration to get a SourceParser, the DTD validation feature on that parser will be enabled if DTD validation is requested at the Configuration level, whether or not it is requested in the particular call to the Sender. Moreover, if the source parser is reused, it appears that the option is not reset.

On .NET it seems that the SourceParser is being used for parsing stylesheets as well as source documents. I'm not sure why, or whether it matters, but the effect in one test case (XsltUsingIdFunction in ExamplesHE in the samples folder) is that the system attempts to parse the stylesheet with DTD validation enabled, and this fails.


Related issues

Related to Saxon - Bug #2540: Unwanted warning with JAXBSourceClosedO'Neil Delpratt2015-12-15

Actions

Please register to edit this issue

Also available in: Atom PDF