Subject: RE: [xsl] <xsl:for-each> From: "Michael Earls" <michael@xxxxxxxxxx> Date: Fri, 19 Apr 2002 16:04:35 -0400 |
This would be best handled by not using for-each. Your best bet is to gain a full understanding of templates and use xsl:template match="Data", handling your conditions in that template. Michael Earls -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Dung, Ming-tzung Sent: Friday, April 19, 2002 3:25 PM To: XSLT List (E-mail) Subject: [xsl] <xsl:for-each> Hi, I wonder whether the XSLT has the instruction like the "break" statement in C/Java language inside the loop. If no such instruction, any design idiom can solve this problem? Thanks in advance!! For example, .... <xsl:for-each select="Data"> <xsl:if test="..."> <!-- If the test is true, I want to exist this loop. --> </xsl:if> </xsl:for-each> Ming XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] <xsl:for-each>, Dung, Ming-tzung | Thread | Re: [xsl] <xsl:for-each>, J.Pietschmann |
Re: [xsl] question with xalan, java, mjyoungblut | Date | Re: [xsl] Schema Exploration..., Mark Diggory |
Month |