xsl variables and node-sets

S

Simon

Hi,

I would like to use <xsl:variable> and <xsl:choose> to dynamically set a
node-set to a variable.
Something like:

<xsl:variable name="MyVar">
<xsl:choose>
<xsl:when test="$MyVar2='0'">
Here I want to select a node set from the source xml document
</xsl:when>
<xsl:eek:therwise>
Here I want to select a different node set from the source xml
document
</xsl:eek:therwise>
</xsl:choose>
</xsl:variable>


Does anyone know how I can do this?


Thanks.

Simon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,262
Messages
2,571,052
Members
48,769
Latest member
Clifft

Latest Threads

Top