Re: [xslt] filenames containing spaces in xslt param



Viktor Štujber wrote:
> <xsl:variable name="path" select="'file%20with%20space%20in%20name.xml'" />
> <xsl:copy-of select="document($path)"/>
> 
> Works... however, I thought string literals could contain spaces...
> why do spaces have to be escaped this way? I'm curious to know.

Because the argument of the document function is a URI, not a filename.

Nick


-- 
aevum gmbh
rumfordstr. 4
80469 münchen
germany

tel: +49 89 3838 0653
http://aevum.de/


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