marc liyanage,select innermost node,xpath innermost node, xml%%%marc liyanage - 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: Marc Liyanage <liyanage@xxxxxxxxx>
Date: Sun, 21 Dec 2003 15:22:43 +0100
marc liyanage


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 ??????????????????????????????????????????? http://www.entropy.ch ??????????????????????????????????? iChat: liyanage@xxxxxxx

????????????????????????????????????? Yoda I am. Grammar I can't.
_________________________________________________________________


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.