[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Break the For-each loop

Subject: Re: Break the For-each loop
From: Dieter Böll <dieter.boell@xxxxxx>
Date: Fri, 09 Sep 2005 11:47:02 +0200
per for loop
Hello Houman,

I don't think you need a fore-each loop there.
It is enough to point out the specific tag with e.g.

<xsl:value-of select="apple[what is specific ot this tag]"/>

or

<xsl:template match="apple">
  <xsl:apply-templates select="@maturity='ripe'"/>
</xsl:template>.

It'll output only this specific apple-tag

Best regards
  Dieter


xsl-list@xxxxxxxxxxxxxxxxxxxxxx schrieb am 09.09.05 11:36:35:
> 
> Hello,
> 
> I would like to look after a specific XML tag (e.g. apple), which can
> occur several times.  I was thinking using a for-each loop and output
> the first found apple. But I would get in this case all the apples
> because of the for-each loop. So how do I break the loop after I have
> found the first apple?
> 
> Thanks
> Houman
> 


______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.