Hi everyone,
Im trying to set a stylesheet variable through Xalan, but I can't seem to get it to work. When I specify the value of the variable in my stylesheet I can use it just fine.
Here is my stylesheet ---- <?xml version='1.0'?> <xsl:variable name="TYPE"></xsl:variable>
<xsl:template match="nletsContent">
<xsl:text>Type = </xsl:text> <xsl:value-of select="$TYPE"/> ......
Then in my code I have the following---- transformer->setStylesheetParam( "TYPE", "Request" );
And when I run it, My output is just Type = ....
If I change the stylesheet to look like this ---- <?xml version='1.0'?> <xsl:variable name="TYPE">Request</xsl:variable>
<xsl:template match="nletsContent">
<xsl:text>Type = </xsl:text> <xsl:value-of select="$TYPE"/> ......
Then it outputs---- Type = Request .....
Does anyone have an idea why this wouldn't work? Any help is appreciated.
Thanks, Ryan
