I have a problem outputing a node list variable

Here should go questions about transforming XML with XSLT and FOP.
weston
Posts: 4
Joined: Sat Sep 23, 2006 8:23 pm

I have a problem outputing a node list variable

Post 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
weston
Posts: 4
Joined: Sat Sep 23, 2006 8:23 pm

Post by weston »

Ah I got it, I use xsl:copy-of instead of xsl:value-of (which just gets text).
Post Reply