Project

Profile

Help

Bug #6205

closed

xsl:try/xsl:catch doesn't catch java.net.URISyntaxException from XMLResolver

Added by Stefan Krause 8 months ago. Updated 7 months ago.

Status:
Duplicate
Priority:
Normal
Category:
Third-party product
Sprint/Milestone:
-
Start date:
2023-09-22
Due date:
% Done:

0%

Estimated time:
Legacy ID:
Applies to branch:
11, 12
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:
Java

Description

Saxon 10.6 and 11.3 are dying during execution of

<xsl:try>
    <xsl:apply-templates select="doc('xml-inputfile.xml')"/>
    <xsl:catch><xsl:comment> ERROR during execution of xsl:apply-templates select="doc('xml-inputfile.xml')" </xsl:comment></xsl:catch>
</xsl:try>

if the doc() funtion fails with a java.net.URISyntaxException (in xmlresolver). The expected behaviour is that the <xsl:catch> code branch is executed.

(The exception itself can be avoided by setting "-Dxml.catalog.fixWindowsSystemIdentifiers=true", see #5580 )

An example is enclosed in the attched zip file.


Files

xmlresolver_try_catch.zip (1.81 KB) xmlresolver_try_catch.zip Stefan Krause, 2023-09-22 13:01

Please register to edit this issue

Also available in: Atom PDF