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

Re: parameter in path

Subject: Re: parameter in path
From: Eric van der Vlist <vdv@xxxxxxxxxxxx>
Date: Fri, 01 Dec 2000 17:32:50 +0100
Re: parameter in path
Frank Hess wrote:
> 
> Hi,
> 
> is it possible to use a paramter in the path of the select of a xsl:value-of ?
> 
> Example:
> 
> <xsl:param name="p1" select="'abc">
> <xsl:value-of select="//some1/$p1/some2"/>

As such, no.

But you can write 

<xsl:value-of select="//some1/*[name()=$p1]/some2"/>

Eric

-- 
See you at XML 2000
      http://gca.org/attend/2000_conferences/XML_2000/building.htm#vlist
------------------------------------------------------------------------
Eric van der Vlist       Dyomedea                    http://dyomedea.com
http://xmlfr.org         http://4xt.org              http://ducotede.com
------------------------------------------------------------------------


 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.