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

Re: multiple node values not being returned

Subject: Re: multiple node values not being returned
From: Rahil <qamar_rahil@xxxxxxxxxxx>
Date: Fri, 20 May 2005 14:38:38 +0100
xml multiple element value xpath
David Carlisle wrote:

All I want is a check if there are any A/Values present in the B node set.


yes, but in relation to your "one line" question, the answer depends on what you want to do. You can do that check with a single XPath, but if you need to generate element nodes then since you can't generate nodes with core Xpath functions then you need to write it as xsl, which tends to take more lines, as you have to close the elements.




Yeah, it would be nice if what I wanted could be done in "one" line and you showed me as well. But for some reason doesnt give me the desired result. All it outputs is the first value 'Handle'. Im not sure why it does so except for the reason that <xsl:value-of> returns one value.

However if I try to write the expression as
<xsl:value-of select="distinct-values($aNode/Value[for $a in . return $oNode/Value[contains(.,$a)]])"/> then it returns 'Handle' thrice instead of 'Handle Bolt'.



Rahil


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.