xsl-list
[Top] [All Lists]

XPath for variable search anywhere

2004-01-22 05:48:22
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



<Prev in Thread] Current Thread [Next in Thread>