[xslt] Re: absolute paths in document() don't work on Windows
- From: Igor Zlatkovic <igor zlatkovic com>
- 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]