[xsl] accessing previously created element

Subject: [xsl] accessing previously created element
From: "paul morgan" <pmorg@xxxxxxxxx>
Date: Wed, 01 May 2002 12:07:55 -0700
I'm going to have a simple sequence of elements:

    a
    a
    :
    :

that will be transformed into a more complex sequence:

    b
        c
        d
    b
        c
        d
    :
    :

unfortunately when transforming the i'th 'a' element to a 'b' (assume i > 1) I also need to access the (i-1)'th 'b' element; that is, the values used to create a 'b' element are dependent upon the current 'a' element being transformed and the preceding 'b' element.  Is this possible?  in a single pass?  

Any hints, suggestions, or pointers to documentation are most appreciated.

Paul




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread