Bug #2551
closedReused source parser may be configured incorrectly
100%
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
Please register to edit this issue