I very often use the document() xslt function to access an external XML file and use that in the transformation. If I provide a URL within the function I can also access RESTfull web service from the xslt and use the XML this service returns in my xslt. But now i have a local program that returns XML and I would like to address it the same way. I could turn it into a service and access it that way, but it would be nice if I could make the XSLT processor (libxslt) to start the program and return the output. Th EXSLT site does not seem to refer to that kind of functions. Somebody out there who has solved this problem ?
A:
You can use a URIResolver
and a custom URI scheme. You that can then redirect certain URI references to read from any source.
lavinio
2009-07-17 14:14:33
Well, not really. I am not using Java. I use the libxslt library. I can ofcourse write an extension and use it, like you could by writing a URIResolver in you java example. i just wanted to know if anybody has done this using libxslt.
PetervanBoheemen
2009-07-17 14:53:05