Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding a clickable URL to XSL

Status
Not open for further replies.

is668

Technical User
Nov 6, 2009
1
US
How do I make just the URL element below appear as a clickable link? The ... represents omitted HTML formatting.

Thanks,
XML newbie

- - - - - - - - - - - - - - - - - - - - - - - - - -

<xsl:stylesheet version="1.0">
<xsl:template match="/">
<html>
<body>
<table>...

<xsl:for-each select="s:ResultSet/s:Result">
<tr>
<td><xsl:value-of select="s:Title"/></td>
<td><xsl:value-of select="s:Summary"/></td>
<td><xsl:value-of select="s:Url"/></td>
</tr>
</xsl:for-each>

...</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
 
><td><xsl:value-of select="s:Url"/></td>
[tt]<td><a href="{s:Url}"><xsl:value-of select="s:Url"/></a></td>[/tt]

ps: I suppose all what I see as critically missing related notably to the namespace-related declarations are not shown just for brievety purpose?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top