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

Re: combining two variables to generate XPATH

Subject: Re: combining two variables to generate XPATH
From: Jeff Kenton <jkenton@xxxxxxxxxxxxx>
Date: Tue, 17 Dec 2002 15:09:40 -0500
xslt concat variable
bix xslt wrote:
Please note I made a slight correction. the $node that appears within the foreach statment just under the branch variable assignment should be $branch instead. This does not solve my problem - this is the original problem. Thanks.


From: "bix xslt" <bix_xslt@xxxxxxxxxxx>
<xsl:variable name="branch" select="concat($node,'/',$type,'/item')" />
<xsl:value-of select="$branch" />
<!-- <xsl:for-each select="$node">


becomes

<xsl:variable name="branch" select="concat($node,'/',$type,'/item')" />
<xsl:value-of select="$branch" />
<!-- <xsl:for-each select="$branch">


You are trying to create your select attribute by concatenating strings at execution time. This is not legal XSLT. You have created a string this way, but select needs to be an XPath expression that produces a nodeset. Look into processors that support the evaluate() extension function, and see if that helps.



-- -------------------------- Jeff Kenton DataPower Technology, Inc.



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.