This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: passing intermediate result while recursively building nodeset
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Sat, 4 May 2002 14:51:24 +0100
- Subject: RE: [xsl] passing intermediate result while recursively building nodeset
- Reply-to: xsl-list at lists dot mulberrytech dot com
> On Fri, 3 May 2002 18:31:15
> Michael Kay wrote:
> >So the question is, what are you actually trying to achieve?
>
> Given a string, I need to create an element to represent each
> word of that string. The created element is relatively
> complex, and when creating the element for word 'i' I may
> need to go back and examine the elements for words 1 thru (i
> - 1) -- with order being important. But at the end of it
> all, I'll need those newly created elements and in the order
> they were created. Is that of any help? And please, if my
> explanation leaves something to be desired, feel free to ask
> for clarification.
>
I agree with Jeni's reply (as always), a 2-phase approach seems right -
provided you don't actually mean that you need information about word (i-1)
in order to decide where the word-break for word (i) occurs.
Michael Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list