By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,626 Members | 2,202 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,626 IT Pros & Developers. It's quick & easy.

Is remote XML/XSL Translation possible?

P: n/a
Our sys op won't/can't install the server side XSLT libraries, to
allow us perform server-side translations on our webserver It is a
Linux machine. Is it possible to put the XML and XSL files on a
different machine and have the translation take place there and then
have the results given to the webserver and then it gets served out to
the user? How would I accomplish something like that? Php? 3rd party
software? Please let me know. Thank you so much!
Jul 20 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a


Gene Ellis wrote:
Our sys op won't/can't install the server side XSLT libraries, to
allow us perform server-side translations on our webserver It is a
Linux machine. Is it possible to put the XML and XSL files on a
different machine and have the translation take place there and then
have the results given to the webserver and then it gets served out to
the user? How would I accomplish something like that? Php? 3rd party
software? Please let me know. Thank you so much!


Well, you would need server side processing on your first server but of
course it could then make a http request to another server for the XSLT
transformation and read the response and send it to the client.
--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #2

P: n/a
On Fri, 23 Apr 2004 15:03:37 -0700, Gene Ellis wrote:
Our sys op won't/can't install the server side XSLT libraries, to
allow us perform server-side translations on our webserver It is a
Linux machine.
BOFH? Can you even get him/her/it to install LibXML/LibXSL and Perl/PHP
bindings for them? If you can then you can at least do the transformations
on that server via Perl/PHP et al.
Is it possible to put the XML and XSL files on a
different machine and have the translation take place there and then
have the results given to the webserver and then it gets served out to
the user? How would I accomplish something like that? Php? 3rd party
software? Please let me know. Thank you so much!


Of course it is - look up RPC, SOAP etc. However why not just have a
seperate webserver (xml.whatever.com) and host the XML / transformations
on that box and just link to them from your main server? No need for your
primary webserver to even serve the files out and you get the joy of
getting your sys-admin to add another box to their workload :)
Jul 20 '05 #3

P: n/a
The answer to your question is yes.

http://www.remoteserver.com/apage.php?xml=bleah&xsl=heh

The only problem here is that a - the security trust between the 2 servers
How is the Remote Page going to know what your xml/xslt files are
you could either a) post them or
b) provide a trusted url for themto be downloaded from -

Then once the source files are on the remote server you can transform them
and spit back the contents and then this will be returned by the user
"Gene Ellis" <ge********@ucop.edu> wrote in message
news:a7**************************@posting.google.c om...
Our sys op won't/can't install the server side XSLT libraries, to
allow us perform server-side translations on our webserver It is a
Linux machine. Is it possible to put the XML and XSL files on a
different machine and have the translation take place there and then
have the results given to the webserver and then it gets served out to
the user? How would I accomplish something like that? Php? 3rd party
software? Please let me know. Thank you so much!

Jul 20 '05 #4

P: n/a
> Linux machine. Is it possible to put the XML and XSL files on a
different machine and have the translation take place there and then
have the results given to the webserver and then it gets served out to
the user? How would I accomplish something like that? Php? 3rd party


1)
hmm. I am not sure why you would want to transfer the results from one
server to another. Just let the XML server display the results as
well. If you are concerned about user authentication, look into CDSSO
(Cross Domain Single Sign-on). CDSSO is much better way to handle this
situation, then to transfer data between 2 servers. Transferring data
between server always introduces security risks.

2)
On the other if you just want to have XML content reside on one server
and the translation engine on a different, look into Apache Cocoon.

Here is an example of how Apache Cocoon can get XML content from a
remote URI, and perform translation.

http://www.xml-dev.com:8080/tldp/htt...ok/xml/xml.xml
(Watch for line wraps)

more examples here: http://www.xml-dev.com/blog/#88

Thanks.
Saqib Ali
http://validate.sf.net
Jul 20 '05 #5

P: n/a
Many approaches ...

jmx is one : http://java.sun.com/products/JavaManagement/
Jul 20 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.