This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Multiple if


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]