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



On Mon, Aug 13, 2001 at 10:28:44PM -0600, Vakoc, Mark wrote:
> 
> > 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

  Okay, I hope it won't break Cygwin

> 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).

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

Daniel

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard@redhat.com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/




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