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

Using XPath in an xsl:param?

Subject: Using XPath in an xsl:param?
From: "Kevin Daniels" <KevinDaniels@xxxxxxxxxxx>
Date: Tue, 20 Jul 2004 23:50:12 -0400
passing xpath as param
Thanks Michael,

I am currently using IE6 and MSXML, so XSLT 2.0 is an opion for the future.
I ended up reversing the order or matching the criteria I was looking for
(rather than using a recursive function) and it works well.
Instead of passing in an XPath statement and dealing with interpretation and
evaluation later on, I pass in a delimited string of values that I need and
simply check if the artist value is contained in the parameter.  For
example:

<xsl:param name="test" select="'Bob Dylan|Tina Turner'"/>

and then use a template with the following:

<xsl:template match="cd">
<xsl:if test="contains($test, artist)">
...
</xsl:if>

Thanks for the suggestions,

Kevin

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.