tags:

views:

38

answers:

1

I tried called css import but cannot evaluate xslt variable , is there any other way of doing this

  <xsl:template match="/" priority="1">

    <xsl:variable name="RecipeId" select="page/abc/a'" />
    <xsl:variable name="CampaignId" select="page/abc/a" />

    @import "lander_umetrix_264.css?ucid={$CampaignId}&#38;urid={$RecipeId}";
    <!--@import "lander.css";-->

    @import "nav_umetrix_264.css?ucid={$CampaignId}&#38;urid={$RecipeId}";


    </xsl:template>
+2  A: 

The expressions in curly brackets are only expanded inside Attribute Value Templates.

Instead of {$CampaignId}, you can use this:

<xsl:value-of select="$CampaignId"/>
Jukka Matilainen