[xsl] retrieve hostname

Subject: [xsl] retrieve hostname
From: Mark Hutchinson <exec@xxxxxxxxxx>
Date: Fri, 24 Feb 2006 11:57:43 +0000
Is there a way to retrieve the hostname of the node running the XSLT?

I have an external document that is being referenced from within the XSLT. It must now run on several machines where the pathing information is different.

If I pass the hostname to XSLT and store it in a <xsl:param> it all works fine. I was wondering if there was a way of calling java to access the hostname that way? Or perhaps there's another way?

i.e. java.net.InetAddress.getLocalHost().getHostName()

Mark H.














//

Current Thread