xpath union,xpath and operator,xpath or operator,xpath union operator,xpath for operator,thing xml,xsl xpath union,xpath union or,xpath operator,xml xpath union operator, xml%%%xpath union - 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: "Dimitre Novatchev" <dnovatchev@xxxxxxxxx>
Date: Sun, 21 Dec 2003 18:04:53 +0100
xpath union
"Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx> wrote in message
news:CIEIIKAKHEBMGMANDDFOEELGCFAA.a_l.delmelle@xxxxxxxxxxxxx
> > -----Original Message-----
> > From: Marc Liyanage
> >
> > On 21.12.2003, at 14:24, Andreas L. Delmelle wrote:
> >
> > > 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
>
> Ah! I thought it worked like this :
>
> first the XPath union operator constructs a set, say
> <thing xml:lang="en" />
> <thing />

No, the union is between all "thing" children for which lang($mylang) is
true and *all* "thing" children.

Of course, the result of this union is all "thing" children (and in document
order):

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


Dimitre Novatchev.
FXSL developer

http://fxsl.sourceforge.net/ -- the home of FXSL
Resume: http://fxsl.sf.net/DNovatchev/Resume/Res.html




 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.