It's not a secret anymore!
The moose likes XML and Related Technologies and the fly likes XSL + using vaiables in URLS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XSL + using vaiables in URLS" Watch "XSL + using vaiables in URLS" New topic

XSL + using vaiables in URLS

Maeve Shey

Joined: Oct 13, 2004
Posts: 7

Does anyone know if this would work. Lets say I have 3 variables that make up a a particular URL e.g var1, var2 and var3. In my XSL then can I simply say <a href="$var1$var2$var3">??

Balaji Loganathan
author and deputy

Joined: Jul 13, 2001
Posts: 3150
You have to use concat() funtion of xslt.

<xsl:value-of select="concat($var1,$var2,$var3)" /> will do.

Spritle Software Blogs
I agree. Here's the link:
subject: XSL + using vaiables in URLS
jQuery in Action, 3rd edition