|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: passing xsl:value-of to HREF
Use an Attribute Value Template:
<tr>
<td align="right"><a
href="http://myserver.com:8881/sp/xmlReport?contentType=excel&report
Type
=rates&FUND={TIME_ZONE}"><img
src="/fd/images/bottom_nav_download.gif" width="157" height="21"
border="0"/></a></td>
</tr>
Which is equivalent to:
<tr>
<td align="right"><a>
<xsl:attribute name="href">
http://myserver.com:8881/sp/xmlReport?contentType=excel&reportType=r
ates&FUND=xsl:value-of select="TIME_ZONE">
</xsl:attribute>
<img src="/fd/images/bottom_nav_download.gif" width="157" height="21"
border="0"/>
</a>
</td>
</tr>
And read the specification and the FAQs some time - they have some
useful answers...
Rgs,
Ben
-----Original Message-----
From: Lee, Insoo [mailto:Insoo.Lee@xxxxxx]
Sent: 06 January 2003 13:45
To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
Subject: passing xsl:value-of to HREF
Hi, in my XSL, I need to pass a value from XML to "href", but int
complains about "<", how would handle this?
THanks
<tr>
<td align="right"><a
href="http://myserver.com:8881/sp/xmlReport?contentType=excel&report
Type
=rates&FUND=<xsl:value-of select="TIME_ZONE">"><img
src="/fd/images/bottom_nav_download.gif" width="157" height="21"
border="0"/></a></td>
</tr>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








