| Subject: How To Execute an x-path statement stored insode an variable ? From: Jan Kohnert <J.Kohnert@xxxxxxxxxxx> Date: Wed, 16 Jun 2004 13:18:47 +0200 | 
Hello List, I have stored x-pathes inside an varibale: <xsl:variable name="GetItem"> <!-- Statische Items --> <item name="NAME" select="BOOK/@name"/> <item name="ISBN" select="BOOK/@isbn"/> ... </xsl:variable> The Idea is to store the x-path inside an variable, because if the XML changes, I dont want to rewrite alle my stylesheets. All I have to do is to change the contant of the variable. My problem is, that I dont really know how to use the x-path inside the @select attribute. If I write <xsl:value-of select="$GetItem/item[@name = 'NAME']/@select"/> I get the value "BOOK/@name". How can I use this value to use this x-path with the xml file ? Thanks! jan
| Current Thread | 
|---|
| 
 | 
| <- Previous | Index | Next -> | 
|---|---|---|
| Flash XSD, Stephen Tredrea | Thread | XSLT and Axis selection, ashushujev | 
| RE: [xsl] including string of value, ma.siebeneicher | Date | XSLT and Axis selection, ashushujev | 
| Month |