[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: passing xsl:value-of to HREF

Subject: RE: passing xsl:value-of to HREF
From: "Ben Robb" <Ben@xxxxxxxxxx>
Date: Mon, 6 Jan 2003 13:59:09 -0000
xsl value of a href
Use an Attribute Value Template:

 <tr>
                    <td align="right"><a
href="http://myserver.com:8881/sp/xmlReport?contentType=excel&amp;report
Type
=rates&amp;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&amp;reportType=r
ates&amp;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&amp;report
Type
=rates&amp;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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.