File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

XSL + using vaiables in URLS

Maeve Shey
Greenhorn

Joined: Oct 13, 2004
Posts: 7
Hi,

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">??

Thanks
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
No.
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: http://aspose.com/file-tools
 
subject: XSL + using vaiables in URLS