Page 1 of 1

How to get current URL in xsl

Posted: Tue Nov 13, 2007 12:38 pm
by sanjeev.gour
Hi,
Is there any way to get the current url using xsl??? I tried using <xsl:value-of select="static-base-uri()"/> but I get NullPointerException in this case. :oops:

Please help, its urgent.

Thnx,
Sanjeev.

Posted: Tue Nov 13, 2007 5:39 pm
by jkmyoung
You'd have to pass it in as a parameter to the xsl. If you're simplying applying the xsl by using a processing instruction, eg
<?xml-stylesheet type="text/xsl" href="styles.xsl"?>
then this isn't possible.