xsl-list
[Top] [All Lists]

Re: [xsl] xslt 1.0 vs xslt 2.0 problem

2008-09-03 13:33:00
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/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--