This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: xsl:include and xsl:otherwise
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] xsl:include and xsl:otherwise
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Wed, 28 Mar 2001 10:58:38 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> Can I have an xsl:include inside an xsl:otherwise? The spec says "The
> xsl:include element is only allowed as a top-level element,"
> so I'm assuming that this is not do-able.
>
> I need to redirect to another stylesheet depending on the
> number of records
> my XML returns.
xsl:include is a compile-time facility, so it's not a tool for this job.
Your best bet is probably to use modes, though I agree they don't solve the
whole problem.
Mike Kay
Software AG
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list