On Thu, Sep 25, 2008 at 06:05:10PM +0200, Michael Buchner wrote: > Daniel Veillard <[EMAIL PROTECTED]> 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?
I don't think it will 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 Well that's not a well formed URI, you asking to access /Program%20Files/test.xml for user 'C' on machine '' > but without success running on Windows XP SP2 32bit. By the way, Windows > Explorer doesn't resolve this file URL... which isn't surprizing either. You can try file:///C:/Program%20Files/test.xml which means file://localhost/C:/Program%20Files/test.xml but basically all of this is not well defined by existing specifications, and apparently nobody want to take the risk of defining it 'properly' and break zillion of bad usages. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ [EMAIL PROTECTED] | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/ _______________________________________________ xml mailing list, project page http://xmlsoft.org/ [email protected] http://mail.gnome.org/mailman/listinfo/xml
