Subject: Re: [xsl] equivalent for 'while' From: "Richard Lewis" <richardlewis@xxxxxxxxxxxxxx> Date: Wed, 16 Feb 2005 17:29:39 +0000 |
On Wed, 16 Feb 2005 17:24:16 +0000, "RQamar" <qamar_rahil@xxxxxxxxxxx> said: > 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? > Does <xsl:template match="child[text()='abcGrandChild']"> work? Richard
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] equivalent for 'while', RQamar | Thread | Re: [xsl] equivalent for 'while', David Carlisle |
Re: [xsl] equivalent for 'while', RQamar | Date | Re: [xsl] equivalent for 'while', David Carlisle |
Month |