Re: [xslt] filenames containing spaces in xslt param
- From: Viktor Štujber <theultramage gmail com>
- To: The Gnome XSLT library mailing-list <xslt gnome org>
- Subject: Re: [xslt] filenames containing spaces in xslt param
- Date: Tue, 23 Jun 2009 21:17:37 +0200
<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.
On 23/06/2009, Chuck Jungmann <chuck cpjj net> wrote:
> Try replacing the spaces with "%20"
>
> On Tue, 2009-06-23 at 18:04 +0530, Vinod Patil wrote:
>> Hi,
>>
>> I have passed a xml "file name containing spaces into it" as a param
>> to the xslt.
>>
>> I am using xsltApplyStylesheet for the transformation and passing
>> parameters to it.
>>
>> I have made sure that param values are quoted (surrounded by single
>> quote).
>>
>> But, in XSLT, when I pass the param passed to the xsl function
>> document to load the xml file, it doesn't work.
>>
>> Please help. Do we need to do something extra so that document
>> function treats xslt params containg spaces correctly?
>>
>> Thanks.
>>
>>
>> --
>> Vinnubhai_MCS
>> _______________________________________________
>> xslt mailing list, project page http://xmlsoft.org/XSLT/
>> xslt gnome org
>> http://mail.gnome.org/mailman/listinfo/xslt
>
> _______________________________________________
> xslt mailing list, project page http://xmlsoft.org/XSLT/
> xslt gnome org
> http://mail.gnome.org/mailman/listinfo/xslt
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]