or and operator,xpath or and operator, xml%%%or and operator - RE: XPATH

[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: XPATH | union operator question

Subject: RE: XPATH | union operator question
From: "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx>
Date: Sun, 21 Dec 2003 14:24:25 +0100
or and operator
> -----Original Message-----
> From: Marc Liyanage
<snip/>
>
> 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.


Cheers,

Andreas


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.