[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

using contains() on multiple elements of the same name

Subject: using contains() on multiple elements of the same name
From: "Boge.Brett" <Brett.Boge@xxxxxxx>
Date: Tue, 17 Oct 2006 15:59:37 -0700
brett boge
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.