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

Re: equivalent for 'while'

Subject: Re: equivalent for 'while'
From: RQamar <qamar_rahil@xxxxxxxxxxx>
Date: Wed, 16 Feb 2005 17:24:16 +0000
Re:  equivalent for 'while'
David Carlisle wrote:


Is there an equivalent of 'while' loop in XSLT 2.0?





it depends what you mean by equivalence.






Well I have an XML document which has several <DEFCONCEPT> elements. Each of these elements contain certain <CHILD> sub-elements of the form below:

<DEFCONCEPT id="123" name="abc">
   <CHILD ref="567">abcChild</CHILD>
</DEFCONCEPT>

<DEFCONCEPT id="567" name="abcChild">
   <CHILD ref="890">abcGrandChild</CHILD>
</DEFCONCEPT>

<DEFCONCEPT id="890" name="abcGrandChild"/>

How could I then place conditions when processing this XML doc such that it continues searching for a <CHILD> element until it finds 'abcGrandChild' ?

I thought perhaps a single statement could loop until the condition becomes 'true' which is obviously not in lines with declarative
programming. How else is it then possible?


Thanks
Rahil

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.