[xsl] using contains() on multiple elements of the same name

Subject: [xsl] using contains() on multiple elements of the same name
From: "Boge.Brett" <Brett.Boge@xxxxxxx>
Date: Tue, 17 Oct 2006 15:59:37 -0700
I'm having a problem, I'm trying to make a selection like so...

XSL:

This works-

    <xsl:for-each select="a[contains(b,'Lovely')]">
    ...
    </xsl:for-each>

This doesn't-

    <xsl:for-each select="a[contains(b,'Bunch')]">
    ...
    </xsl:for-each>

XML:

<a>
    <b id="something"> <item> Lovely </item> </b>
    <b id="something lese"> <item> Bunch </item> </b>
    <b> <item> Of coconuts </item> </b>
</a>

How do I make this work like I want it to (so that it will match Lovely,
Bunch, Of, and coconuts)?


Have a good day,

Brett Boge

Current Thread