xsl-list
[Top] [All Lists]

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

2006-10-17 15:59:56
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

--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>