Subject: Re: [xsl] xsl:when, xsl:otherwise question? From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 03 Feb 2005 15:18:22 -0500 |
Is it possible to implement an else-if condition using the above.
All literature i've read only seems to use xsl:when and xsl:otherwise... no "xsl:else-when" condition?
<doc> <element n="10"/> <element n="100"/> </doc>
<xsl:template match="element[@n < 100]"> <xsl:text>An element was found with n less than 100</xsl:text> </xsl:template>
<xsl:template match="element[@n = 100]"> <xsl:text>An element was found with n equal to 100</xsl:text> </xsl:template>
<xsl:template match="element[@n > 100]"> <xsl:text>An element was found with n greater than 100</xsl:text> </xsl:template>
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] xsl:when, xsl:otherwise q, Nick Roberts | Thread | RE: [xsl] xsl:when, xsl:otherwise q, Joe Heidenreich |
Re: [xsl] position(), Alan Gutierrez | Date | Re: [xsl] XSLT for Extensibility, Dimitre Novatchev |
Month |