|
Subject: RE: [xsl] passing xsl:value-of to HREF From: "Ben Robb" <Ben@xxxxxxxxxx> Date: Mon, 6 Jan 2003 13:59:09 -0000 |
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: [xsl] 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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] XML reformatting <xsl:ele, David Carlisle | Thread | [xsl] creating page links, Sam Carleton |
| Re: [xsl] Autonumbering with XSLT, David Carlisle | Date | Re: [xsl] passing xsl:value-of to H, Oleg Tkachenko |
| Month |