RE: [xslt] was RE:[] forward and back slashes in URI



>   Strange, it is used through xmlBuildURI() which should 
> handle the unescaping
> of the URI-Reference. Did you try it and it failed ?
> 
> Daniel

xsltDocumentElem() builds a proper URI, so my input of:

file:///f:/debug test/file.xml  becomes
file:///f%3A/debug%20test/file.xml

It then calls xsltSaveResultToFilename which calls
xmlOutputBufferCreateFilename which then uses the matching output callback
of xmlFileOpenW.

xmlFileOpenW (after applying my simple win32 fix mentioned earier) would
pass
f%3A/debug%20test/file.xml to fopen().

The reason document() worked is xmlParserInputBufferCreateFilename calls
xmlURIUnescapeString(), however xmlOutputBufferCreateFilename() never calls
xmlURIUnescapeString() before going through the output callbacks.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]