Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: eval xpath expression stored in an attribute eval xpath expression stored in an attributeTo: NULL Date: 1/6/2005 8:44:00 AM Is there any way to evaluate an xpath expression that's stored inside an
attribute of the xml document? In to doc below, there's an xpath in the
<tmpnode> node. I try to use it in the <xsl:value-of> but it returns
the string representation of the xpath, "n1/@ta", instead of evaluating
it and returning "bkldere".
xml doc...
<doc1>
<tmpnode relsel="n1/@ta"/>
<n1 ta="bkldere"/>
</doc1>
xsl...
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="doc1">
<xsl:variable name="xpvar" select="tmpnode/@relsel"/>
<xsl:value-of select="$xpvar"/>
</xsl:template>
</xsl:stylesheet>
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
