Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 7th, 2008, 12:24 AM
Authorized User
 
Join Date: Jan 2004
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default Java call within a Xalan-J XSLT

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
http://server1.abc.com/trans?xml=...&xsl=... 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.







Similar Threads
Thread Thread Starter Forum Replies Last Post
Xalan Java Interpretive vs Compiled processor XSLTUser XSLT 0 December 29th, 2007 01:34 AM
how to call .rpt from java mogal155 Javascript How-To 0 January 10th, 2005 11:14 AM
xalan, serces, xslt techno123 XSLT 2 January 5th, 2005 02:30 PM
How to call java external files? hlchuah77 Java GUI 2 September 12th, 2004 02:10 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.