Project

Profile

Help

RE: Error XTTE0505 When Using @as On xsl:template with a * » As.xslt

Adrian Bird, 2024-10-03 16:25

 
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="3.0"
xmlns:myns="http://myns"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output method="xml" indent="yes" />

<xsl:variable name="var01" as="element(Q{http://myns}*)+">
<myns:node>var01</myns:node>
</xsl:variable>

<xsl:template name="xsl:initial-template">
<root>
<xsl:copy-of select="$var01" />
<xsl:call-template name="template01" />
</root>
</xsl:template>

<xsl:template name="template01" as="element(Q{http://myns}*)+">
<myns:node>template01</myns:node>
</xsl:template>
</xsl:stylesheet>
    (1-1/1)