XSLTInputHandler and url's

Here should go questions about transforming XML with XSLT and FOP.
j2eenewbie
Posts: 1
Joined: Sun Apr 03, 2005 12:54 am

XSLTInputHandler and url's

Post by j2eenewbie »

I am using XSLTInputHandler constructor in a java action
and, up to now, i have used it with file names hosted in my disk but i'd like to use it with xml data retrieved from an url. is this possible?if not, is there any workaround i can do?

what i'd like to have is sth like:

public XSLTInputHandler("http://host:7011/web/myXML.xml"),
"http://host:7011/web/myXSL.xsl")


thanks in advance for your help
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi,

Assuming you are talking about rg.apache.fop.apps.XSLTInputHandler.
It has a constructr that takes InputSource obejects instead of files as parameters. From an URL you should be able to obtain an InputSource.

Best Regards,
George
Post Reply