Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XSL and tag attributes
Message
From
10/10/2000 09:41:39
 
 
To
All
General information
Forum:
Internet
Category:
XML
Title:
XSL and tag attributes
Miscellaneous
Thread ID:
00427243
Message ID:
00427243
Views:
40
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
Map
View

Click here to load this message in the networking platform