xsl-list
[Top] [All Lists]

Re: [xsl] xsl:import

2017-07-23 07:48:26
On 23.07.2017 14:03, Dave Pawson dave(_dot_)pawson(_at_)gmail(_dot_)com 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"/>
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>