Re: [xslt] Spaces and <xsl:document href="..."> element.



On Mon, Aug 02, 2004 at 08:17:09PM +0400, Lev Serebryakov wrote:
>    href="{$cwd}/{ name}/index.html"
[...]
>   Everything works, except one thing: if directory's name contains spaces (<dir name="with spaces">...</dir>), xsltproc trys to open file:
> 
>   "./with%20spaces/index.html"
> 
>  And it FAILS (of course!). Is it xsltproc's (libxslt's) bug or I do something wrong?

  You do something wrong by passing an href="" value which is not an
URI-Reference. See RFC2396 for the syntax allowed in URI and URI-References.
Paths are *not* URIs.

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/


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