This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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
Have you checked out Aspose?
subject: XSL + using vaiables in URLS
It's not a secret anymore!