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



> This file's URI is file:///f:/somedir/file.xml

This seems to be broken for win32.  From xmlIo.c  function xmlOpenFileW()
---
    if (!strncmp(filename, "file://localhost", 16))
	path = &filename[16];
    else if (!strncmp(filename, "file:///", 8))
	path = &filename[7];
    else 
	path = filename;
---

path would evaluate to '/f:/somedir/file.xml' which isn't valid.  A quick
fix would be
#ifdef _WIN32
	path = &filename[8];
#else
	path = &filename[7];
#endif

Also, the implementation of deprecated 1.1 function  <xsl:document> doesn't
seem to properly handle the 'href' uri.  It fails to unescape the encoded
values (i.e. %20).





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