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

Re: Parameters in XPath

Subject: Re: Parameters in XPath
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Mon, 06 Jan 2003 23:34:30 +0100
Re:  Parameters in XPath
This is only possible using an processor dependent extension function xx:evaluate():

<xsl:apply-templates select="/Cat[@CatId=$Cat]/Prod[xx:evaluate($Filter)]"/>

And it must be a string then, not an expression. Your param $Filter contains after evaluation only true or false.

Maybe you better explain, what you really want to do and somebody can provide you better help.

Regards,

Joerg

Juan Carlos Gonzalez wrote:
Hi:

I have defined a "Filter" paramater to be used in a
Xpath. It's going to be an expression using any
attribute within the element "Prod" but it's not
working, any suggestions?

<xsl:param name="Filter" select="@rebate>0"/>

<xsl:apply-templates
select="/Cat[@CatId=$Cat]/Prod[$Filter]"/>

Thanks.


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.