namespace collision with namespace-alias

I’m trying to write a sort of generative XSLT: an XSLT stylesheet which creates another XSLT stylesheet. Unfortunately, I’ve confused xsltproc.

The simplest example if the following. I copy content of “xsl:stylesheet” as is and added a dummy template.

þškz[q²[-ÊW¬…ç­ûìf–{1²_¾

Note that “xsl:copy-of” and “axsl:template” are in different namespaces. Now apply this stylesheet to itself. Result is the following.

þškz[qš_¯z»"¢

Now “axsl:copy-of” and “axml:template” are in the same namespace. It is incorrect.

By the way:

1) I expected that output prefix should be “xsl”, not “axsl” (despite the specification doesn’t require it).

2) Here is output from Saxon:

þškz[qš_¯z»"¢

Bug is submitted.

Leave a Reply