RE: Fwd: [xsl] complex XPATH test

Subject: RE: Fwd: [xsl] complex XPATH test
From: Adam Van Den Hoven <Adam.Hoven@xxxxxxxxxxxx>
Date: Wed, 18 Jul 2001 09:15:20 -0700
I came up with the following scheme that doesn't seem to have any
dependancies on for-each:

	<xsl:variable name="ancestorblock" select="(ancestor::p|... all the
rest of them)[last()]" />
test="boolean(generate-id($ancestorblock/descendant::node()[last()]) !=

That seems to work OK for me. Now I'll grant that I've tweaked it a bit, I
had forgotten you could apply a predicate to (p | h2), but that seems to be
the best possible solution since you aren't doing any loopeing or counting.
Its also short. 

Thanks for your help.

 XSL-List info and archive:

Current Thread