[xsl] break or exit in xsl?

Subject: [xsl] break or exit in xsl?
From: Katharina Kreis <katharinakreis@xxxxxx>
Date: Mon, 07 Mar 2005 12:00:52 +0100

I need to exit my xsl:for-each tag when I'm reaching a value. Example:

<xsl:for-each select="Person/Age">
   <xsl:if test=".='30'>
      <!-- Here I need to exit xsl:for-each -->

In Java or C++ there exists a break or exit keyword to do this. How can I do this with xsl?


Current Thread