This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
[newbie] Conditional Include
- To: <xsl-list at mulberrytech dot com>
- Subject: [newbie] Conditional Include
- From: "Jean de Lavarene" <breux at online dot fr>
- Date: Mon, 24 Jul 2000 12:42:51 +0200
- Reply-To: xsl-list at mulberrytech dot com
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