Re: [xsl] xsl:import

Subject: Re: [xsl] xsl:import
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 23 Jul 2017 12:48:21 -0000
On 23.07.2017 14:03, Dave Pawson dave.pawson@xxxxxxxxx wrote:
AFAICT I can't use a variable inside an import?

<xsl:import href="{$disk}/path"/>

I'm running with all xsl files on a HDD (currently XXX)
and know I'll change it to YYY in a year or so.

Is there any way to use the above syntax?
I.e. prefix the 'disk' to a given path?

With XSLT 3.0 and static parameters and shadow attributes you can:


<xsl:param name="disk" static="yes" as="xs:string" select="'file:///C:'"/>

<xsl:import _href="{$disk}/path"/>

Current Thread