Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - [xsl] xslt 1.0 vs xslt 2.0 problem [Thread Next] Re: [xsl] xslt 1.0 vs xslt 2.0 problemTo: Date: 9/3/2008 5:33:00 PM 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/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
