xslt exit from style sheet

Please support our XML, XSLT and XPATH advertiser: Intel Parallel Studio Home
Reply

Join Date: Nov 2009
Posts: 1
Reputation: veera_kumar is an unknown quantity at this point 
Solved Threads: 0
veera_kumar veera_kumar is offline Offline
Newbie Poster

xslt exit from style sheet

 
0
  #1
23 Days Ago
Hi all,

I have a one problem in xsl.

I dont want to do further execution, when a condition reaches. I need to come out from the style sheet. Could you any one help me out on this.

Thanks,
Veera
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 2,615
Reputation: adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of 
Solved Threads: 469
Moderator
adatapost's Avatar
adatapost adatapost is offline Offline
Posting Maven
 
0
  #2
22 Days Ago
XSLT is written in a very functional style, and in this style there is no equivalent of a exit/break statement.
XML, XSLT and XPATH Syntax (Toggle Plain Text)
  1. <xsl:for-each select="nodes">
  2. <xsl:if test="some condition">
  3. body of loop...
  4. </xsl:if>
  5. </xsl:for-each>
Take a look at this article - http://articles.techrepublic.com.com...1-5085807.html
Failure is not fatal, but failure to change might be. - John Wooden
Reply With Quote Quick reply to this message  
Reply

Message:



Similar Threads
Other Threads in the XML, XSLT and XPATH Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC