|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: RE: Parameter not working in contains() function
Grant, Kathryn --- Sr. Technical Writer --- WGO wrote:
Thanks to Oleg and Tom for their earlier help, which got me far enough to ask another question. "Variables in XSLT are not macros!" (c) xsl-list. When you have a variable holding string, it's just string, no matter what is inside the string and you can't expect this string will be magically interpreted as XPath expression. In your case there is a workaround though: <xsl:for-each select="doclist/doc[contains(*[name()=$param1],$param2)]"> -- Oleg Tkachenko http://www.tkachenko.com/blog Multiconn Technologies, Israel 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
|

Cart








