Subject: XML value in HRef link
Posted By: aware Post Date: 1/8/2007 7:07:38 AM
Hi

Here is my link code

 <a href="javascript:newWindow('/Go.asp?id=4&amp;FY=2007')" title="View Enquiry"><xsl:value-of select="@Name"/></a>

What I'm trying to do is use <xsl:value-of select="@ID"/> as the FY in the above link.

Any Ideas would be great.

Andy

Reply By: joefawcett Reply Date: 1/8/2007 7:35:27 AM
Look at attribute value templates:
<a href="javascript:newWindow('/Go.asp?id=4&amp;FY={@ID}')" title="View Enquiry"><xsl:value-of select="@Name"/></a>


--

Joe (Microsoft MVP - XML)
Reply By: mhkay Reply Date: 1/8/2007 7:43:26 AM
Just use

<a href="javascript:newWindow('/Go.asp?id=4&amp;FY={@ID}')" ...

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
Reply By: aware Reply Date: 1/8/2007 7:52:07 AM
Thanks Guys

Joe  reading up on AVT now.

Andy


Go to topic 54526

Return to index page 71
Return to index page 70
Return to index page 69
Return to index page 68
Return to index page 67
Return to index page 66
Return to index page 65
Return to index page 64
Return to index page 63
Return to index page 62