Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.net.MalformedURLException: no protocol: header.xsl

4068Jan 19 2005
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 !!!!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 16 2005
Added on Jan 19 2005
0 comments
1,522 views