Re: [xml] Whitespaces within URI




Daniel Veillard <veillard redhat com> wrote on 25.09.2008 17:28:42:

> On Tue, Sep 23, 2008 at 03:22:57PM +0200, Michael Buchner wrote:
> > Hello,
> >
> > I have problems with URIs containing whitespaces using the XSLT document()
> > function. It seems to be a general problem in libxml2 when loading
> > external documents, for example
> > C:/Program Files/test.xml
>
>   by definition document() requires URI References, and in URI space
> need to be escaped.


You mean
    C:/Program%20Files/test.xml
should work?

>
> > File protocol with %20 as whitespace escaping doesn't work neither.
>
>   now that's strange, are you sure you built the URI file correctly ?
> Note that 'file' based URI are horribly undefined so what an apllication
> or system may accept as a valid file URI may mean something completely
> different for a different system using the same URI.


I have tried
    file://C:/Program%20Files/test.xml
but without success running on Windows XP SP2 32bit. By the way, Windows Explorer doesn't resolve this file URL...

>
> Daniel
>
> --
> Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
> daniel veillard com  | Rpmfind RPM search engine http://rpmfind.net/
> http://veillard.com/ | virtualization library  http://libvirt.org/
>


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