<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 <[email protected]> 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/
>> [email protected]
>> http://mail.gnome.org/mailman/listinfo/xslt
>
> _______________________________________________
> xslt mailing list, project page http://xmlsoft.org/XSLT/
> [email protected]
> http://mail.gnome.org/mailman/listinfo/xslt
>
_______________________________________________
xslt mailing list, project page http://xmlsoft.org/XSLT/
[email protected]
http://mail.gnome.org/mailman/listinfo/xslt

Reply via email to