Borislav Stoyanov wrote:
Hello,

do you know if this is a bug or a feature ? If it is a bug, is it still a 
problem with the newer xerces versions?


It's not a bug. As I explained in my previous note, Xerces-C requires legal URLs, and the '#' character is not allowed in a URL, except as a fragment identifier.

file:///Y:/My#Path/MyFile.xsl

to see if that works. If it doesn't, then you might ask on the Xerces-C list to see if they think a '#' should be allowed in a file URL. I'm not familiar enough with the details to answer the question.

> So it remains open if we decide to fix the xerces code or take newer
> versions.

Another possibility is to derive your own class from XSLTInputSource and override XSLTInputSource::makeStream(). You should then be able to return the and instance of the Xerces-C class BinFileInputStream. Take a look at the Xerces-C class src/xercesc/framework/LocalFileInputSource for more details. And be sure also to pass the fully resolved URL to the XSLTInputSource constructor, so the processor knows the system ID.

Dave

Reply via email to