[xml] xsl:document (intenially?) escaping filenames
- From: Achim Reckeweg <Achim Reckeweg Sun COM>
- To: xml gnome org, Achim Reckeweg <Achim Reckeweg Sun COM>
- Cc:
- Subject: [xml] xsl:document (intenially?) escaping filenames
- Date: Thu, 16 Sep 2004 19:46:55 +0200
Hi,
unfortunately I have had mail problems yesterday so as I am not
subscribed yet I am not aware if this message has already gone through.
Sorry for any duplicates.
I am having problems outputting multiple documents using xsl:document if
the URIs contains whitespace.
I have the impression that the script has been working with an earlier
version of libxml/libxslt.
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">
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.
Any hint anybody how to suppress this?
regards Achim
PS: Please reply directly as I am not subscribed to the list yet
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]