> How do I do this with XSLT?
> <xsl:template match="//track">
> <a href="/jukebox/audio/player.cfm?filename=<xsl:value-of
> select="listen"/>" target="_blank">listen</a>
> </xsl:template>
> It doesn't seem to like the < in the HREF attribute.
Well, yeah, that's invalid xml markup...
<xsl:template match="//track">
<a target="_blank">
<xsl:attribute>
<xsl:value-of
select="concat('/jukebox/audio/player.cfm?filename=',listen)" />
</xsl:attribute>
listen</a>
</xsl:template>
You can also place the beginning portion of the href string outside
the xsl:value-of tag and omit the concat() string -- though I'm not
sure if there are any caveats that might go along with that... seems
safer in this case just to use the concat().
s. isaac dealey 954.522.6080
new epoch : isn't it time for a change?
add features without fixtures with
the onTap open source framework
http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215961
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54