Re: [xsl] Process only nodes on a special axis

Subject: Re: [xsl] Process only nodes on a special axis
From: Marco Baumgartl <Marco.Baumgartl@xxxxxx>
Date: Wed, 16 Aug 2006 20:52:43 +0200
Hi Wendell,

I created a quick and dirty picture about the elements I want to have. You can have a look at it here:
http://www.baumgartl.org/misc/pictures/elements.png


I'm unsure by what criteria you are determining what is an "outermost" element. The expression //element[not(preceding-sibling::element)] would get you the elements with keys 'Lichtausschnitt' and 'li' but not 're', but it would also get you '1,985', and it's not clear from your example why this one wouldn't (or would) be "outermost".

Your XPath expression is not that what I've been looking for :-( because it gives me a lot of other elements that I don't want. I can not really explain it but I think my picture says it all ;-)


I will restart experimenting with my named template which calls itself recursively. But this time I'm going to integrate your expression because I think that it be very useful for me :-)

If anybody knows a method of resolution without my named template (e.g. just a single XPath expression), you are welcome to announce ;-)


regards Marco

Current Thread