This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: For each loop faliure


Heppa,

> In the below code I want to for loop to be continued for all nodes.
> 
> But here in this code below in the first case itself if the 
> condition fails
> it goes out of for each loop.
> 
> How about to proceed?
> 
> <xsl:for-each select="$A/RecipeVersions">
> 		<xsl:for-each select="$B/RecipeVersions">
> 			<xsl:if 
> test="($A/RecipeVersions/RecipeVersion/VersionID !=
> $B/RecipeVersions/RecipeVersion/VersionID) = false">

this should be

  <xsl:if test="$A/RecipeVersions/RecipeVersion/VersionID = $B/RecipeVersions/RecipeVersion/VersionID">

Santtu

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]