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

RE: including string of value in xpath-path

Subject: RE: including string of value in xpath-path
From: "Passin, Tom" <tpassin@xxxxxxxxxxxx>
Date: Tue, 15 Jun 2004 13:51:16 -0400
xsl parameter name
> From: ma.siebeneicher@xxxxxx [mailto:ma.siebeneicher@xxxxxx] 
> 
> i have some problems with an xpath expression. my target is 
> to generate a xpath string including a value from a varible 
> or parameter, evaluate(xpath) and getting some content from 
> node. maybe it will clear after my xsl and xml snippets..
> 
> this is my xsl snippet which should combine the element 
> sitemap and the variable $sitemap-collection-path with the 
> title element by using the
> concat() function.
> 
>   <xsl:parameter name="sitemap-collection-path" select="galley"/>
> 

In addition to Josh Canfield's suggestion, your parameter assignment
above does not select what you seem to want.  It selects all nodes
having the path "galley".  To get the string value "galley", you would
write 

<xsl:parameter name="sitemap-collection-path" select="'galley'"/>

Cheers,

Tom P

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.