This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Multiple if
- To: xsl-list at mulberrytech dot com
- Subject: Multiple if
- From: "tmmet tvp" <tmmet at hotmail dot com>
- Date: Wed, 02 Feb 2000 09:39:20 PST
- Reply-To: xsl-list at mulberrytech dot com
Hi,
I'm using <xsl:if> in my xsl file...
I've multiple <xsl:if> statments...Where I'm caaling some functions...
Say like,
<xsl:template match="TEST">
<xsl:if expr ="CallTestisTrue("good")">
//do something...
</xsl:template>
<xsl:template match="MAIN">
<xsl:if expr ="CallFunction2("main","1")">
//do something...
</xsl:template>
I'm passing the parameters for the functions at runtime as follows(in my
javascript)
CallFunction2= style.XMLDocument.selectSingleNode("//xsl:if/@expr")
CallFunction2.text = "CallFunction2("testing","trythis")"
If there is only one if statement in my xsl file,the above method works
fine...If I've many <xsl:if>,how can I set the paramer values in my
javascript...
Any ideas/suggesions will be greatly helpful foe me...Thanks in advance.
<
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list