You can't exit an xsl:for-each prematurely for the simple reason that it's not a loop. In an ideal world all the nodes selected in by the for-each are processed simultaneously, even in the real world there is not guarantee of the actual order. You are fighting XSLT instead of utilising it, try something like:
Code:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/destination">
<xsl:apply-templates select="searchCities/searchCity"/>
</xsl:template>
<xsl:template match="searchCity">
<xsl:choose>
<xsl:when test=" cityName = /destination/parameters/query">Do something</xsl:when>
<xsl:otherwise>Something else</xsl:otherwise>
</xsl:choose>
<xsl:template>
--
Joe (
Microsoft MVP - XML)