Hi,
From the experiemtns that I have done I am pretty sure that this isn;'t possible but I thought I'd ask anyway.
I have an XSLT that based upon a parameter passed in i want to conditionally include another xslt.
so my code would look something like:
when i run this i get an error saying xsl:import isn't allowed in this position and when i move it to the top of the xsl file i then can't use xsl:choose.
Is there another way to achieve this?
Tony
From the experiemtns that I have done I am pretty sure that this isn;'t possible but I thought I'd ask anyway.
I have an XSLT that based upon a parameter passed in i want to conditionally include another xslt.
so my code would look something like:
Code:
<xsl:choose>
<xsl:when test="$a = 1">
<xsl:import href="1.xsl" />
</xsl:when>
<xsl:when test="$a = 2">
<xsl:import href="2.xsl" />
</xsl:when>
</xsl:choose>
<!-- rest of the xsl document here -->
when i run this i get an error saying xsl:import isn't allowed in this position and when i move it to the top of the xsl file i then can't use xsl:choose.
Is there another way to achieve this?
Tony