XSLTProcessor: need interface to libxslt´s xsltDocL

XSLTProcessor: need interface to libxslt´s xsltDocL

am 16.10.2009 12:24:58 von Felix Siglreithmaier

Hi,

in the Java Xalan XSLT processor there is an URIResolver object to
resolve URIs used in xsl:include, xsl:import, etc.
http://xml.apache.org/xalan-j/apidocs/javax/xml/transform/cl ass-use/URIReso=
lver.html

With this URIResolver you can comfortably implement your own logic to
load external resources.

A small example how it works in Java, so maybe my problem is easier to
understand:

TransformerFactory.newInstance().setURIResolver(
new URIResolver() {
public Source resolve(String href, String base) {
// all included files are relative to c:\temp
return new StreamSource(
new File ("c:\\temp\\"+href));
}
});

and so statements like:

will include c:\temp\include.xsl



Now my problem is, that i need this functionality in PHP=B4s XSLTProcessor.

Generally I think libxslt already supports the same functionality with
the xsltDocLoaderFunc:
http://xmlsoft.org/XSLT/html/libxslt-documents.html#XSLTDOCL OADERFUNC

anyone have an idea how to handle that problem?

thanks a lot

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php