having match="one | two" and then choosing with if

Discussion in 'XML' started by myth.drannon@gmail.com, Dec 7, 2005.

  1. Guest

    Hi ,

    I'm trying to find a simple solution to this question.. ( not just
    making two match parts)

    I have
    <xsl:template match=" one | two " >

    and then I want to test what match I have and do something accordinly.
    I was thinking <xsl:if test="match=one" > will work but it's not ....
    may be some test="self()=one" ??? any ideas ?

    Thanks.
     
    , Dec 7, 2005
    #1
    1. Advertising

  2. wrote:

    > I'm trying to find a simple solution to this question.. ( not just
    > making two match parts)
    >
    > I have
    > <xsl:template match=" one | two " >
    >
    > and then I want to test what match I have and do something accordinly.
    > I was thinking <xsl:if test="match=one" > will work but it's not ....
    > may be some test="self()=one" ??? any ideas ?


    <xsl:when test="self::eek:ne"></xsl:when>
    --
    Johannes Koch
    In te domine speravi; non confundar in aeternum.
    (Te Deum, 4th cent.)
     
    Johannes Koch, Dec 7, 2005
    #2
    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. =?Utf-8?B?TWlrZQ==?=

    greater then / less then

    =?Utf-8?B?TWlrZQ==?=, Nov 4, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    1,627
    Kevin Spencer
    Nov 4, 2004
  2. python
    Replies:
    13
    Views:
    600
    Mike Meyer
    Nov 10, 2005
  3. Mufasa
    Replies:
    7
    Views:
    435
    Alexey Smirnov
    Sep 4, 2007
  4. Replies:
    0
    Views:
    336
  5. Replies:
    4
    Views:
    561
    cwdjrxyz
    Jan 17, 2006
Loading...

Share This Page