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]

xsl:include and xsl:otherwise


Hello,

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.  

Example: When a query returns an XML with 0 records, I want to make a user
go back to their search page (an XSL-generated one) from where they typed in
the query.  If they get results, they receive an XSL-generated output from
the current XSL.

Any suggestions on the best way to do this?

Thanks,
Noë

 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]