Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XSL and tag attributes
Message
De
10/10/2000 09:41:39
 
 
À
Tous
Information générale
Forum:
Internet
Catégorie:
XML
Titre:
XSL and tag attributes
Divers
Thread ID:
00427243
Message ID:
00427243
Vues:
39
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
Fil
Voir

Click here to load this message in the networking platform