Project

Profile

Help

Bug #2362

closed

"Illegal character in path at index 0" when setting xml:base through AVT

Added by Gerrit Imsieke about 9 years ago. Updated about 9 years ago.

Status:
Won't fix
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
2015-04-25
Due date:
% Done:

100%

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

Description

If you invoke the following template

<xsl:template name="main">
  <out xml:base="{'out.xml'}"/>
</xsl:template>

it will fail with

java.lang.IllegalArgumentException: Illegal character in path at index 0: {'out.xml'}

    at java.net.URI.create(URI.java:859)

    at java.net.URI.resolve(URI.java:1043)

    at net.sf.saxon.style.UseWhenFilter.startElement(UseWhenFilter.java:130)

It seems as if the attribute value of xml:base (specifically, no other attributes seem to be affected so far) is checked before the AVT is evaluated, or the AVT isn’t evaluated at all.

This used to work in Saxon 9.5. Tested with (at least) PE 9.6.0.5J, HE 9.6.0.5J, and HE 9.6.0.4J and the the 9.6 HE version that shipped with XML Calabash 1.0.25 in February.

Please register to edit this issue

Also available in: Atom PDF