OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   is there a way to break out of the xsl:for-each loop ?

[ Lists Home | Date Index | Thread Index ]

What to look thru a listOfNodes, and set contents on a variable, foundIt,
when I found what I am looking for, then break. 

<xsl:variable name="foundIt">
	<xsl:for-each select="$listofNodes">
		<xsl:if test="string(current()) = $mySearchItem">
			<!-- break out of look if found what I am looking
for -->

<!-- do something with foundIt -->

Bill Riegel
LandMark Graphics


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS