Hi,
after running the transformation I want the following output:
<p:elementNam e/>
therefore I run my xslt as the following:
<xsl:variable name="prefix">< xsl:text>p</xsl:text></xsl:variable>
...
<xsl:template match="currentN ode">
<xsl:variable name="nodeName" ><xsl:value-of select="name()"/> </xsl:variable>
<xsl:element name="{$prefix} :{$nodeName}" /> -> here is the problem
...
the problem is, that I write {$prefix}:{$nam e} and the compiler says that no namespace is declared for the prefix "p".
Thanks for help in advance!
after running the transformation I want the following output:
<p:elementNam e/>
therefore I run my xslt as the following:
<xsl:variable name="prefix">< xsl:text>p</xsl:text></xsl:variable>
...
<xsl:template match="currentN ode">
<xsl:variable name="nodeName" ><xsl:value-of select="name()"/> </xsl:variable>
<xsl:element name="{$prefix} :{$nodeName}" /> -> here is the problem
...
the problem is, that I write {$prefix}:{$nam e} and the compiler says that no namespace is declared for the prefix "p".
Thanks for help in advance!
Comment