Project

Profile

Help

Error message: "Namespace prefix xsl refers to a reserved namespace"

Added by Sebastian Mangold about 5 years ago

New version 9.9.1.1 (EE and HE) reports error when transforming the following little script:

<?xml version="1.0" encoding="UTF-8"?>

<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
               version="1.0">

  <xsl:strip-space elements="xsl:*"/>

  <xsl:template match="/"/>

</xsl:transform>
java -jar /local/prg/saxon/ee/9.9.1.1/saxon9ee.jar -t -s:test.xsl -xsl:test.xsl -o:test.txt

9.9.1.1 (EE and HE) reports the following error message (same with Java 1.8.0_181):

Saxon-EE 9.9.1.1J from Saxonica
Java version 1.8.0_144
Using license serial number xxxxxxx
Static error at xsl:strip-space on line 6 column 38 of test.xsl:
  XTSE0080: Namespace prefix xsl refers to a reserved namespace
Errors were reported during stylesheet compilation

Previous versions without error, which is in our opinion correct. 9.9.0.2 (EE and HE) processes file and writes output test.txt:

<?xml version="1.0" encoding="UTF-8"?>

We've tried out on different machines (Ubuntu 18.04.1 LTS and Debian 8.11).

test.xsl (221 Bytes) test.xsl

Replies (1)

RE: Error message: "Namespace prefix xsl refers to a reserved namespace" - Added by Michael Kay about 5 years ago

Thanks for reporting it. Logged here:

https://saxonica.plan.io/issues/4129

It looks at first sight like an unintended consequence of the changes made to fix bug #4096.

    (1-1/1)

    Please register to reply