|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Selecting stylesheet at runtime?
Hi, I need to select the stylesheet at runtime, depending on my XML data. I tried to use something like <xsl:template match="/"> <xsl:apply-templates select="/RESULTS/RESULT" mode="switch"/> </xsl:template> <xsl:template match="RESULT" mode="switch"> <xsl:choose> <xsl:when test="@OBJECT='EMISSION' and @METHOD != 'SMOKE'"> <xsl:include href="gas.xsl"/> </xsl:when> <xsl:when test="@OBJECT='EMISSION' and @METHOD = 'SMOKE'"> <xsl:include href="smoke.xsl"/> </xsl:when> <xsl:otherwise> <xsl:include href="generic.xsl"/> </xsl:otherwise> </xsl:choose> </xsl:template> But the xsl:include doesn't work. Regards Martin Rothschink XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








