[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Re: Conditional Processing in XSLT & JS

Subject: RE: Re: Conditional Processing in XSLT & JS
From: Jarno.Elovirta@xxxxxxxxx
Date: Fri, 3 Jan 2003 10:46:03 +0200
javascript xslt in js
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.