Re: [xsl] XPATH | union operator question
Subject: Re: [xsl] XPATH | union operator question|
From: Marc Liyanage <liyanage@xxxxxxxxx>
Date: Sun, 21 Dec 2003 15:22:43 +0100
On 21.12.2003, at 14:24, Andreas L. Delmelle wrote:
Perhaps Mike Kay's answer earlier on in this thread could be the
<xsl:value-of select="(thing[lang($mylang)] | thing)[last()] />
I read that, but I guess that's useful for the original problem, where
you have a hierarchy, i.e. you have an outermost and an innermost node
to select. In that case, the last() will make sure you get the
In my case, the elements are on the same level so that can't be used.
either that or change your input doc to :
Unfortunately I have no control over the input docs in this particular
The solution proposed by Dimitre Novatchev earlier today works very
well for me.
Marc Liyanage marc@xxxxxxxxxx
Yoda I am. Grammar I can't.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list