Hello,

just to inform you: Prepending "file://" didnt help 
:Type:MalformedURLException, Message:The URL used an unsupported protocol.

In such cases it remains to readjust the xerces-c sources for this purpose.

I'll still have to ask the xerces-mail-group about this issue though.

Best regards,

-----Original Message-----
From: David Bertoni [mailto:[EMAIL PROTECTED]
Sent: Monday, October 24, 2005 8:10 PM
To: [email protected]
Subject: Re: Xalan-C++ 1.4 / Xerces C++ 2.1 Problem with paths
containing '#'


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