Information générale
Titre:
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?
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement