RE: [xslt] Re: absolute paths in document() don't work on Windows

Ok, my mistake. They are not URIs and I misunderstood the use of the 

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.



>From: Igor Zlatkovic <>
>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.
>xslt mailing list, project page

Tired of spam? Get advanced junk mail protection with MSN 8.

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