[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: Kay Michael <Michael.Kay@xxxxxxx>
Date: Mon, 4 Dec 2000 10:48:14 -0000
parameter in path perl
> You might be able to use xsl:attribute.
> 
> <xsl:param name="p1" select="'abc">
> <xsl:value-of>
> 	<xsl:attribute name="select">//some1/<xsl:value-of
> select="$p1"/>/some2</xsl:attribute>
> </xsl:value-of>

1. The <xsl:value-of> instruction must be empty.
2. <xsl:value-of> writes a text node to the output, <xsl:attribute> writes
an attribute node, why would you want to do both at once?
3. The value of the attribute node created will be the string
'//some1/abc/some2', it will not be the value obtained by treating this
string as an XPath expression and evaluating it. XSLT 1.0 does not allow you
to construct XPath expressions dynamically from strings.

Mike Kay 


 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.