Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Escape XPath expression from string Escape XPath expression from stringTo: NULL Date: 12/5/2007 3:44:00 PM
Hi!
I would like to replace the following code fragment:
<xsl:variable name="icon2" select="normalize-space(@icons)" />
<xsl:element name="img">
<xsl:attribute name="src"><xsl:value-of select="/index/icon[@id =
$icon2]/@path" /></xsl:attribute>
</xsl:element>
with a shorter one, i.e. with another piece of code that makes direct
use of the @icons value, e.g. (*not working*):
<xsl:element name="img">
<xsl:attribute name="src"><xsl:value-of select="/index/icon[@id =
<@icons_value>]/@path" /></xsl:attribute>
</xsl:element>
So good doctors, is there hope for me?
thx
Axel
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
