Re: [xslt] xsl:document (intenially?) escaping filenames



On Tue, Sep 21, 2004 at 10:12:01AM +0200, Achim Reckeweg wrote:
> I already upgraded to the latest version but same behaviour.
> The directory structure already exists is writable and the files are
> written by the script if no spaces are included in the URIs.
> 
> Here is the code excerpt
> 
> <xsl:variable name="outFile" select="concat( 'mp3/Artist/',
> current()/../FileName, '/', ArtistName, '/index.html')"/>
> <xsl:document href="{$outFile}" method="html" encoding="UTF-8">

  xsl:document href is an URI Reference, this is not a file path.

> and here the output of xsltproc -v
> 
> Lookup variable outFile
> found variable outFile
> xsltEvalXPathString: returns mp3/Artist/2/2 Raumwohnung/index.html
> xsltEvalAttrValueTemplate: {$outFile} returns mp3/Artist/2/2
> Raumwohnung/index.html
> I/O error : No such file or directory
> runtime error: file MakeArtistIndex.xsl line 40 element document
> xsltDocumentElem: unable to save to mp3/Artist/2/2%20Raumwohnung/index.html
> 
> So it looks to me that the variable is created correctly but the
> xsl:document function is escaping the space character.

  yes it's an URI, it should be escaped.

> Any hint anybody how to suppress this?

  no

> PS: Please reply directly as I am not subscribed to the list yet

  Subscribe for further feedback see the guidelines !
    http://xmlsoft.org/XSLT/bugs.html

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]