Re: [xsl] ../preceding-sibling/SubDiv1" does not seem to work

Subject: Re: [xsl] ../preceding-sibling/SubDiv1" does not seem to work
From: "Mark Wilson" <mark@xxxxxxxxxxxx>
Date: Mon, 9 Mar 2009 13:18:33 -0700
There are more Level2 elements in that axis and your second suggestion works perfectly.
Thanks,
Mark


--------------------------------------------------
From: "Fred Christian" <fredc@xxxxxxxxxx>
Sent: Monday, March 09, 2009 1:08 PM
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [xsl] ../preceding-sibling/SubDiv1" does not seem to work

This assumes there are no other <Level2> nodes in the preceding-sibling axis. To handle that condition, you could try this
(preceding-sibling::Level2[1]/SubDiv1 = SubDiv1)
If that doesn't work, I would have to see more of the surrounding xslt.

Current Thread