xsl variables and node-sets

Discussion in 'XML' started by Simon, Dec 3, 2003.

  1. Simon

    Simon Guest

    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
    Simon, Dec 3, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    1,400
  2. Doug

    Comparing node sets

    Doug, Jul 25, 2003, in forum: XML
    Replies:
    1
    Views:
    487
    Marrow
    Jul 25, 2003
  3. CB
    Replies:
    1
    Views:
    585
    Johannes Koch
    Oct 2, 2003
  4. Replies:
    1
    Views:
    3,585
    A. Bolmarcich
    May 27, 2005
  5. Tjerk Wolterink
    Replies:
    2
    Views:
    1,400
    Dimitre Novatchev
    Aug 24, 2006
Loading...

Share This Page