Dieter, David and Michael,
Many thanks for your response.
Best Regards
Houman Khorasani
-----Original Message-----
From: Dieter Böll [mailto:dieter(_dot_)boell(_at_)web(_dot_)de]
Sent: 09 September 2005 10:47
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Break the For-each 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(_at_)lists(_dot_)mulberrytech(_dot_)com 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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--