On 15 March 2012 17:51, Rick Quatro <rick(_at_)rickquatro(_dot_)com> wrote:
I have the following XML file:
<?xml version="1.0" encoding="UTF-8"?>
<chapter>
<section level="1">
<title id="1003261">Camshaft Cover</title>
<section level="2">
<title id="1003269">Removal</title>
<paragraph id="1003264"/>
</section>
<section level="2">
<title id="1003262">Rebuilding</title>
<paragraph id="1003265"/>
</section>
<section level="2">
<title id="1003321">Installation</title>
<paragraph id="1003322"/>
</section>
</section>
</chapter>
When my context is a particular level 2 section element, I need to find all
of the title elements of the sibling level 2 elements, except for the
current level 2 section's title.
If you can use xpath 2 then you can do:
(../* except .)/title
--
Andrew Welch
http://andrewjwelch.com
--~------------------------------------------------------------------
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>
--~--