There are more Level2 elements in that axis and your second suggestion works
perfectly.
Thanks,
Mark
--------------------------------------------------
From: "Fred Christian" <fredc(_at_)kbooks(_dot_)com>
Sent: Monday, March 09, 2009 1:08 PM
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
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.
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--