Subject: Re: [xsl] Breaking from the loop (for-each or apply-template) From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Fri, 12 Aug 2005 15:42:48 -0400 |
<value>5</value> <value>9</value> <value></value> <value>Hooey!</value>
<xsl:template match="/"> <xsl:choose> <xsl:when test="$errors"> <!-- erroneous 'value' elements are found --> <xsl:apply-templates select="$errors" mode="report-errors"/> </xsl:when> <xsl:otherwise> <!-- no errors: process normally --> <xsl:apply-templates/> </xsl:otherwise> </xsl:choose> </xsl:template>
Cheers, Wendell
Oleg,
I've never used Cocoon, but I can tell you that Xalan 2.5.1 and above (2.7 was released a few days ago) do support the xsl:message instruction.
Regards, Kenneth
====================================================================== 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] Breaking from the loop (f, Kenneth Stephen | Thread | [xsl] How to sort attribute?, John Li |
Re: [xsl] Breaking from the loop (f, Kenneth Stephen | Date | Re: [xsl] Problem using Key on mult, Joris Gillis |
Month |