RE: [xsl] preceding sibling headaches

Subject: RE: [xsl] preceding sibling headaches
From: "Conal Tuohy" <conalt@xxxxxxxxxxxxxxx>
Date: Wed, 23 Apr 2003 08:40:49 +1200
Rick Taylor wrote:

> Paul,
> try changing the test to this:
> <xsl:when test = "name(preceding-sibling::*[1])='transition'">

Or "preceding-sibling::*[1]/self::transition" which also means "the first
preceding-sibling node, if it is a transition", without requiring the
"name()" function-call.

> I think the way you have it now simply returns the first previous
> occurrence of a 'transition' element rather than testing to
> see if the
> immediately previous element is a 'transition' element.

agree.


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


Current Thread