Forum Moderators: open

Message Too Old, No Replies

Java variables in XSL

         

eternal

10:35 am on May 10, 2007 (gmt 0)

10+ Year Member



Hi,

I have an XSL document which current links to one stylesheet to style an XML file. I need to be able to switch the stylesheet name depending on the url or a java variable.

In all of the jsp templates I use <name:product/> to output the product name for any switches like this, how could I do the same thing in the XSL document?

Many thanks

cmarshall

11:33 am on May 10, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



XSLT supports parameters and external functions.

You would probably use xsl:param [w3schools.com].