Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: a xsl select used as a href a xsl select used as a hrefTo: NULL Date: 9/2/2004 10:38:00 AM hi, does somebody know if i can use some data contained in a .xml in a link
in the .xsl file??
what i´m looking for is something like:
<ul>
<xsl:for-each select="data/contact">
<li>
<a href='<xsl:value-of select="link"/>' target="_blank">
<xsl:value-of select="name"/>
</a>
</li>
</xsl:for-each>
</ul>
but it said:
The character '<' can´t be used in a attribute value. Error when
processing file:///E:/Documents and
Settings/Ricardo/Escritorio/myWeb/enlaces.xsl. Line 34, Position 12
<a href='<xsl:value-of select="link"/>'>
-----------^
i tried to delete ', but then, the error was:
A literal string was expected, but the opening " weren´t found. Error when
processing file:///E:/Documents and
Settings/Ricardo/Escritorio/myWeb/enlaces.xsl. Line 34, Position 11
<a href=<xsl:value-of select="link"/>>
Thanks
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
