P
Petterson Mikael
Hi,
I was running the following in Netbeans 5.5:
sing com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl -
default JRE XSLT processor.
Creating
output/NcmiSigTest.java
Unsupported XSL element 'http://www.w3.org/1999/XSL/Transform:document'
Transformation finished.
Do I need an transformer that supports xslt 2.0? Or what am I missing ?
cheers,
//mikael
This is part of my xsl file:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.1">
<xslutput method="text" />
<!-- The main template loops over all of the
classes and creates a file for each one -->
<xsl:template match="/">
<xsl:for-each select="data/class">
<xsl:variable name="filename"
select="concat('output/',@name,'.java')" />
<xsl:message>Creating
<xsl:value-of select="$filename" /></xsl:message>
<xsl:document href="{$filename}" method="text">
<xsl:call-template name="junit-class">
<xsl:with-param name="class" select="." />
</xsl:call-template>
</xsl:document>
</xsl:for-each>
</xsl:template>
I was running the following in Netbeans 5.5:
sing com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl -
default JRE XSLT processor.
Creating
output/NcmiSigTest.java
Unsupported XSL element 'http://www.w3.org/1999/XSL/Transform:document'
Transformation finished.
Do I need an transformer that supports xslt 2.0? Or what am I missing ?
cheers,
//mikael
This is part of my xsl file:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.1">
<xslutput method="text" />
<!-- The main template loops over all of the
classes and creates a file for each one -->
<xsl:template match="/">
<xsl:for-each select="data/class">
<xsl:variable name="filename"
select="concat('output/',@name,'.java')" />
<xsl:message>Creating
<xsl:value-of select="$filename" /></xsl:message>
<xsl:document href="{$filename}" method="text">
<xsl:call-template name="junit-class">
<xsl:with-param name="class" select="." />
</xsl:call-template>
</xsl:document>
</xsl:for-each>
</xsl:template>