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

M

myth.drannon

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.
 
J

Johannes Koch

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>
 

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

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top