[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] XPath for variable search anywhere


Subject: [xsl] XPath for variable search anywhere
From: "Andrew Maclean" <andyjmaclean@xxxxxxxxxxx>
Date: Thu, 22 Jan 2004 12:48:22 +0000

Dear all,

I have a variable in my XSL (call it myVar) and I wish to search the entire node hierarchy for nodes which share it's name. You could say I want to combine the syntax

<xsl:copy-of select="//aNodeName">

with

<xsl:copy-of select="$myVar">

but the syntax I want

<xsl:copy-of select="//$myVar">

causes my processor (4suite) to generate an XsltException. Does anybody know the syntax I need to look at all levels of the hierarchy for nodes that have the name (or attribute) "myVar"?

Thanks a lot,

Mr Andrew Maclean

_________________________________________________________________
Sign-up for a FREE BT Broadband connection today! http://www.msn.co.uk/specials/btbroadband



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list




Current Thread
Keywords
xsl