This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: referring to previous elements


fine.
In the given XML ,

    <xsl:for-each match="action">
        <xsl:if test="current adq = previous adq">
             <tr>table row</tr>
        </xsl:if>
        <tr> table row </tr>
    </xsl:for-each>

I just want to do the above.
i have to do a check between the current adq and the previous adq and if they
are same print the table row.
If this is not yet clear kindly let me know.

Thanks,
Senthil.

Jarno.Elovirta@nokia.com wrote:

> > But i need this to be done more generic and not only for adq1
> > and adq2.
> > i need to do this for all the current element and previous elements.
> >
> > like "adq[n] and adq[n-1]".
>
> I'm not sure exactly what you want here, so could you give desired output to
> for the source in you last post.
>
> Jarno
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]