I am trying to dynamically generate an XSLT document from an XSLT stylesheet. In principle this works, of course, but I do not get the namespaces working. I want to have the generated XSLT elements to be prefixed with “xsl” prefix:
<xsl:stylesheet ...>
rather than
<stylesheet xmlns="http://www.w3.org/1999/XSL/Transform">
I played around with namespace=”” of xsl:element and with xsl:namespace but I do not get it working (xslt2/saxon available)
Any hints?
If you want to use XSLT to create XSLT code then using http://www.w3.org/TR/xslt20/#element-namespace-alias helps e.g.