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

Subject: Re: xslt 1.0 vs xslt 2.0 problem
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Wed, 03 Sep 2008 19:32:27 +0200
mark bordelon wrote:
Using XSLT 1.0 (which I must, since I am constrained to use ASP.NET 2.0) I need to query the XML above to find all <A> if any of its children <B> fulfill a certain requirement.
//A[ contains(B/@a, "foo") ]


What I am seeing is that this XSL only checks the FIRST child node's (B) attribute instead of checking all of them.

I think you want
//A[B[contains(@a, "foo")]]
whichs selects all 'A' elements having a 'B' child element where the 'a' attribute contains the string "foo".






--

	Martin Honnen
	http://JavaScript.FAQTs.com/

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