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

RE: How to specify a path to a node in a nodeset using

Subject: RE: How to specify a path to a node in a nodeset using a variable
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Thu, 8 Mar 2001 16:58:38 -0000
RE:  How to specify a path to a node in a nodeset using
> I have the following scenario
>
> INPUT.XML
> <document>
>   <group>
>      <row>
>         <label>User Id:</label>
>         <entryfield name="/Person/UserId/@name"/>   <!--

>   <xsl:variable name="path" select="string(@name)"/>
>         <xsl:value-of select="$container/$path"/>

Inventive, but it doesn't work. Variables can only hold values, they can't
hold expressions or parts of expressions.

Saxon (and I think several other products, now) has an evaluate() extension
function that will do this for you.

Mike Kay
Software AG


 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-2011 All Rights Reserved.