Problem while retrieving XSL in JAR with getResourceAsStream
Hello everyone,
My problem is that I'm trying to load XSL files from a JAR (and obviously does not succeed ;-))
I implemented a URIResolver. This resolver gives me the names of the files as specified in the "xsl:include".
Problem : the xsl:include in my stylesheets contains relative path like "/myDirectory/../directory/another.xsl".
When I execute : "class.getResourceAsStream(/myDirectory/../directory/another.xsl)" it returns null when I have the JAR file in the classpath but returns a valid InputStream when I reference the directory in the classpath.
The '/../' in the path does not seem to work when retrieving a resource from a JAR file... Is this a bug or am I missing something?
To validate this, I tried the following :
class.getResourceAsStream("/myDirectory/directory/myXSL.xsl") which works.
Now I tried this :
class.getResourceAsStream("/myDirectory/directory/../directory/myXSL.xsl") which DOES NOT WORK.
Thansk in advance,
J閞鬽e.

