[Home] [By Thread] [By Date] [Recent Entries]

  • 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...>

--- "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

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member