How to get current URL in xsl

Here should go questions about transforming XML with XSLT and FOP.
sanjeev.gour
Posts: 4
Joined: Thu Oct 25, 2007 1:57 pm

How to get current URL in xsl

Post 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.
jkmyoung
Posts: 89
Joined: Mon Mar 06, 2006 10:13 pm

Post 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.
Post Reply