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

Re: XPath selectNodes() returns empty List

  • To: "Leyzerzon, Simeon" <simeon.leyzerzon@c...>, "'xml-dev@l...'" <xml-dev@l...>
  • Subject: Re: XPath selectNodes() returns empty List
  • From: "Murat G." <mgungora@y...>
  • Date: Tue, 18 Oct 2005 16:48:20 -0400 (EDT)
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.ca; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=b9vpdqgGQmYrU2E0yJ5RAxQakrat7NsMPQs55q4eQ1F4p7taovrN05/x894SeTskMsk3sQ40jzofFi3zTyze4IiRrktPaueMe4+5D1vB7YDj0gqIAMHGq/F9ZocN/e4eojOFBOgOzC8bVDAdAUFRb5sjQjeMSOug/FgAZMRJLXA= ;
  • In-reply-to: <0B834CEE3453504B82AB821DFB7047C1018A54D5@e...>

xpath selectnodes
--- "Leyzerzon, Simeon" <simeon.leyzerzon@c...> wrote:
...
> I've been experimenting with passing different expressions in the 
hopes of maybe figuring this
> behavior out, and found out
> that this expression works:
> 
> //decision 
[supporting-class='com.csfb.fao.clr.calc.rule.OutstandingComposite']/decision/@ref
> 
> but as soon as I add text() onto it, it stops working in Java, that 
is
> 
> //decision
> 
[supporting-class='com.csfb.fao.clr.calc.rule.OutstandingComposite']/decision/@ref/text()
> doesn't work.
> 

As far as I know, attributes do not have text node, so "@ref/text()" 
does not seem to be valid.
Isn't the test "@ref" enough for your purpose? You want to select 
within 'decision' nodes having
'ref' attribute, no?

regards,
-murat




	

	
		
__________________________________________________________ 
Find your next car at http://autos.yahoo.ca

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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.