xsl-list
[Top] [All Lists]

RE: retrieve hostname

2006-02-24 05:39:32
If you know of a Java method that returns the information then you can call
it the same way as you call any other extension function (which depends on
which processor you are using).

Michael Kay
http://www.saxonica.com/ 

-----Original Message-----
From: Mark Hutchinson [mailto:exec(_at_)afex(_dot_)co(_dot_)uk] 
Sent: 24 February 2006 11:58
To: xsl-list
Subject: [xsl] retrieve hostname

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.




      

      

      

      

      

//


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>