RE: [xsl] XPATH | union operator question

Subject: RE: [xsl] XPATH | union operator question
From: "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx>
Date: Sun, 21 Dec 2003 14:24:25 +0100
> -----Original Message-----
> From: Marc Liyanage
> I have a similar problem with this evaluation in document order:

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()] />

either that or change your input doc to :

>    <things>
>      <thing xml:lang="de"/>
>      <thing xml:lang="en"/>
>      <thing/>
>    </things>

In which case the first one in the set will be the default only if there are
no others, so your initial solution would work.



 XSL-List info and archive:

Current Thread