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:

Hi Marc,

Perhaps Mike Kay's answer earlier on in this thread could be the solution :

<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 innermost node.

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 application.

The solution proposed by Dimitre Novatchev earlier today works very well for me.

_________________________________________________________________ Marc Liyanage                                   marc@xxxxxxxxxx                                                                        iChat: liyanage@xxxxxxx

                                      Yoda I am. Grammar I can't.

XSL-List info and archive:

Current Thread