I am running a servlet under Tomcat. The servlet is a "wrapper" for Xalan-J that transforms a given XML/XSL combo. (I don't have access to this servlet source code.)
I have been successful in getting super basic Java calls working in my XSLs (such as string.toUpperCase or InetAddress.getLocalName).
My current requirement is for my XSLT to be able to know the complete URL of what called it. For example, I want something like
... or http://server2.abc.com/trans?xml=...&xsl=
... that I can store into a variable.
The IP address and box name I can get via InetAddress. It is the URL that I really need.