[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Re: Conditional Processing in XSLT & JS
Maybe I have been misunderstood. The part {name} - here I mean the test of node with name 'name' and then I want to bring a string returned by a javascript function and compare it with the text of the node name. If they match then I will execute the statements beneath the if. Cheers Frank -----Original Message----- From: Jarno.Elovirta@xxxxxxxxx [mailto:Jarno.Elovirta@xxxxxxxxx] Sent: Friday, January 03, 2003 9:46 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: Re: Conditional Processing in XSLT & JS Sensitivity: Confidential Hi, > I have the following evaluation : > > <xsl:if test="'{name}' = 'return bpr_name()'"> > > if the contents of 'name' node and the string returned by the > javascript > function are equal the it will perform the following tasks. > > For some reason or other it is not evaluating the bpr_name function. > > Can anybody give me some hint of what maybe is happening?? You're trying to write something that's not XPath. See the documentation of your XSLT implementation how JavaScript is used in XPath expressions and use <xsl:if test="name = JAVASCRIPT_GOES_HERE"> Cheers, Jarno - Claire Voyant: Premonition (Assemblage 23 Mix) XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|