> -----Original Message----- > From: Dang Minh Phuong [mailto:[EMAIL PROTECTED] > > I use for-each to loop through all nodes and test the value. If the > condition is true, I'd like to stop the loop. How can I do that. Could you > help me to suggest ideas??? Thanks >
A break-statement like in Java? I think not. An <xsl:for-each> is unconditionally completed for all nodes in the source document that match the given expression... What you *can* do is use <xsl:if> or <xsl:choose> inside the <xsl:for-each> to put a filter on the nodes to be processed... ( only process the nodes that satisfy a certain condition ). Greetz, Andreas --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
