General information
Title:
XSL and tag attributes
Hey everyone,
Can I use XML output and a string in the XSL document to define an HTML tag attribute?
All my examples are from memory of last night, so if they're way wrong, sorry, but here's what I mean:
<a href="page.asp?page=<xsl:value-of select="page"/>">
I want it to create a link to page.asp?page=1
if "page" = 1. I've tried a ton of combinations and something that even looked like:
<a><xsl:attribute name="href">page.asp?page=<xsl:value-of select="page"/></xsl:attribute></a>
Do I just have to bite the bullet and send the entire constructed link through the XML document?
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only