[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
mark bordelon wrote:
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".
--
Re: [xsl] xslt 1.0 vs xslt 2.0 problem
Subject: Re: [xsl] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] xslt 1.0 vs xslt 2.0 problem, mark bordelon | Thread | RE: [xsl] xslt 1.0 vs xslt 2.0 prob, Houghton,Andrew |
[xsl] xslt 1.0 vs xslt 2.0 problem, mark bordelon | Date | RE: [xsl] xslt 1.0 vs xslt 2.0 prob, Houghton,Andrew |
Month |