Page 1 of 1

I have a problem outputing a node list variable

Posted: Sun Sep 24, 2006 1:48 pm
by weston
I have a problem outputing a node list variable from this template:

Code: Select all


    <xsl:template name="OutputGraphXML">
<xsl:param name="GraphData"/>
<xsl:variable name="SeriesData">
<xsl:call-template name="TableDataToGraphingSeries">
<xsl:with-param name="TableData">
<xsl:value-of select="$GraphData"/>
</xsl:with-param>
</xsl:call-template>
</xsl:variable>

<xsl:element name="graph">
<xsl:value-of select="$SeriesData"/>
</xsl:element>
</xsl:template>

This does not output SeriesData as I expect it too. In the oxygen debugger, it shows a populated node-set at the xsl:value-of point. All I get is an empty graph element. If I don't put the node set into a variable, it comes out fine.

Can anyone help please?

Thanks,

Alan

Posted: Sun Sep 24, 2006 3:23 pm
by weston
Ah I got it, I use xsl:copy-of instead of xsl:value-of (which just gets text).