I am using an URIResolver to process xslt-files. I have created my own implementation of resolve(String href, String base).
I am using a streamSource based on a byte  as source. Before I call my URIResolver, I set streamSource.setSystemId("testFolder/testFile.xsl") (the path of the file that I am processing), so that I can access it from within the resolve-method.
When I debug through my resolve-method, the href-parameter is "testFile2" (the file that is being included). So that is good. Bug the base-parameter is not "testFolder/testFile.xsl", as I was hoping, but "file:///C:/Program%20Files/Java/jdk1.8.0_60/bin/testFolder/testFile.xsl".
Does anyone know why I get such a long path before my base, and not just "testFolder/testFile.xsl"? And how can I make that any System id that I set on my source, is available in the resolve-method without the gibberish in front?
Any help would be really appreciated!