[xsl] Convert to a Nodelist

Subject: [xsl] Convert to a Nodelist
From: "Clark, Jason" <jason.clark@xxxxxxx>
Date: Fri, 22 Jun 2001 11:29:18 -0400
Hello All,

Xalan

I'm have a variable

<xsl:variable name="peerSelect">
    <xsl:if test="$peerSearch = 'NextYear' ">
        ComparisonPe/Yr2
    </xsl:if>
    <xsl:if test="$peerSearch = 'NextQuarter' ">
        ComparisonPe/Qtr2
    </xsl:if>
</xsl:variable>

and I want to build the nodeset.
<xsl:value-of select="$peerSelect/PEER1" />

but I get an error
org.apache.xalan.xslt.XSLProcessorException: Can not convert #RTREEFRAG to a
NodeList!
How can I convert this to a NodeList?

thx

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread