RE: [xslt] Re: absolute paths in document() don't work on Windows
- From: "Xyster !" <xyster_ hotmail com>
- To: xslt gnome org
- Subject: RE: [xslt] Re: absolute paths in document() don't work on Windows
- Date: Sat, 06 Mar 2004 18:40:21 +0000
Ok, my mistake. They are not URIs and I misunderstood the use of the
function.
I am also aware of the non-valid Windows path in the second case. But in a
preverse way it is a valid URI. More importantly, it does what I want.
Thanks,
Yuval
>From: Igor Zlatkovic <igor@zlatkovic.com>
>Reply-To: xslt@gnome.org
>To: xslt@gnome.org
>Subject: [xslt] Re: absolute paths in document() don't work on Windows
>Date: Sat, 06 Mar 2004 11:58:35 +0100
>
>Xyster ! wrote:
>
>><xsl:value-of select="document(str:encode-uri('c:\test.xml', 'UTF-8'))" />
>><xsl:value-of select="document(str:encode-uri('/c:\test.xml', 'UTF-8'))"
>>/>
>
>That can't work. The function is called encode-uri and it accepts an URI as
>an argument, not a native Windows path. The first example is not an URI,
>neither is the second one. The second one is not even a valid Windows path.
>
>In general, native Windows paths within any XML file won't work with
>libxml. You can use native Windows path only as a command-line argument
>when calling xmllint or xsltproc. Within XML, you must use URIs.
>
>Ciao,
>Igor
>
>_______________________________________________
>xslt mailing list, project page http://xmlsoft.org/XSLT/
>xslt@gnome.org
>http://mail.gnome.org/mailman/listinfo/xslt
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]