Re: [xsl] Got xml base path in the xslt file

Subject: Re: [xsl] Got xml base path in the xslt file
From: Mukul Gandhi <gandhi.mukul@xxxxxxxxx>
Date: Wed, 16 Sep 2009 14:12:35 +0530
The solution I mentioned, below would be suitable for XSLT 1.0 environment.

If you are using XSLT 2.0, then the solution which Ken and Mike have
proposed, should be preferred.

On Wed, Sep 16, 2009 at 8:45 AM, Mukul Gandhi <gandhi.mukul@xxxxxxxxx> wrote:
> I could think of following strategy to tackle this problem.
>
> You could put XML and XSL files into different folders. Then you could
> pass the directory location of XML files, into your stylesheet as a
> parameter. Something like following:
>
> <xsl:param name="xmlBase" />
>
> <xsl:for-each select="document(concat($xmlBase, '/', $fileName))">
> B  ...
>
> I have not tested this, though.



--
Regards,
Mukul Gandhi

Current Thread