This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: conditional inclusions
- To: xsl-list at mulberrytech dot com
- Subject: Re: conditional inclusions
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Wed, 1 Nov 2000 09:50:53 -0400 (EST)
- References: <14846.50894.762000.932462@menteith.com>
- Reply-To: xsl-list at mulberrytech dot com
> You would probably say that xsl:include would do the trick, yes but that's
No xsl:include is for including stylesheets.
You just want something like
<xsl:template match="include">
<xsl:apply-templates select="document(@url,.)"/>
</xsl:template>
and a template for your <if include="1"> construction that selects
the then or else clause depending on the value of @include.
David
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list