java.net.MalformedURLException: no protocol: header.xsl
Hi all,
I'm facing a problem with includes in XSL since I upgraded to Oracle XML Parser 9.2.0.6 from 9.0.4.0.
We're getting this error:
java.net.MalformedURLException: no protocol: header.xsl
when parsing the following XSL:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="header.xsl"/>
<xsl:import href="bodysearch.xsl"/>
</xsl:stylesheet>
We are using a URIResolver to resolve imports within XSLs as FileInputStream:
public class URIResolverImpl implements URIResolver
{
private String _documentRoot;
/** Creates new URIResolverImpl */
public URIResolverImpl(String documentRoot)
{
_documentRoot = documentRoot;
}
public Source resolve(String href, String base) throws TransformerException
{
try
{
return new StreamSource(new FileInputStream(_documentRoot + href));
} catch (Exception e)
{
throw new TransformerException(e);
}
}
}
We tried to force it to use "file:" protocol but it didn't work.
What changed between 9.0.4.0 and 9.2.0.6 versions of Oracle XML Parser ?????
Please, heeeelp !!!!