Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] Variable in xsl:import href attribute

From: "G. Ken Holman" <gkholman@-------------------->
To:
Date: 9/4/2007 2:51:00 PM
<xsl:import> is a compile-time action and when it is being resolved 
there are no variables in scope.



The only way to do a conditional import is in XSLT 2.0 and then only 
with fixed URI strings and the condition based only on system 
properties and not variables as in the following example from the 
spec for xsl:include:



  <xsl:include href="module-A.xsl"
     use-when="system-property('xsl:vendor')='vendor-A'"/>
  <xsl:include href="module-B.xsl"
     use-when="system-property('xsl:vendor')='vendor-B'"/>

I hope this helps.



. . . . . . . . . Ken



At 2007-09-04 16:35 +0200, Manfred Staudinger wrote:



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



Manfred




On 04/09/07, Bernie <berniecc@xxxxxxxxx> wrote:
> Is possible to concatenate path + file in a href attribute of an
> <xsl:import> or just using a preset variable?
>
> <xsl:import href= "$incPath" />
>
> Thanx.
> Bernie.




--
Upcoming public training: XSLT/XSL-FO Sep 10, UBL/code lists Oct 1
World-wide corporate, govt. & user group XML, XSL and UBL training
RSS feeds:     publicly-available developer resources and training
G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
Male Cancer Awareness Jul'07  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent