RE: [xsl] get the first of the following with Attribute equals

Subject: RE: [xsl] get the first of the following with Attribute equals
From: cknell@xxxxxxxxxx
Date: Tue, 04 Feb 2003 12:24:42 -0500
[From:Cedric Claus <claus_cedric@xxxxxxxxxxxxxxx>]
I want to have only the *first *following with the attribute Type = title or with my test : <xsl:if test="./@position < following::element
[@type='title']/@position">

I'm having trouble understanding your requirement.

Is it that you want the first element with "paragraph" as the type attribute which follows each element with "title" as the type attribute? That seems plain, but what does the <xsl:if> element select?

That's got me puzzled. Could you elaborate on your explanation?
--
Charles Knell
cknell@xxxxxxxxxx - email


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



Current Thread