This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[newbie] Conditional Include


Good morning you'all,

I am trying to do conditional include, like this :

<xsl:choose>
    <xsl:when test="$country='GUFRA'">
        <xsl:include href="GUFRA.xsl"/>
    </xsl:when>
    <xsl:otherwise>
        <!--Define here what to do if no country specified.-->
    </xsl:otherwise>
</xsl:choose>

But this won't work because 'choose' are not allowed outside a template.

Any ideas on how to do that?

Jean


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]