[xsl] Evaluate string as XPATH axis in XSLT1.0?

Subject: [xsl] Evaluate string as XPATH axis in XSLT1.0?
From: Matt Poff <matt.poff@xxxxxxxxxxxxxxx>
Date: Mon, 20 Aug 2007 17:58:07 +1200
Hi,

I'm trying to resolve a node attribute which contains an XPATH fragment to actually resolve that path to a value. Is this possible.

XML with attribute looks like...

<grid-map map="./foo[@bar]/select" />


XSLT looks like... <xsl:variable name="path" select="../grid/grid-map[1]/@map"/> <xsl:value-of select="{$path}" />

Unfortunately, this results in errors... Any ideas?

Thanks in advance,
Matt

Current Thread