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

RE: Compound filter in for-each

Subject: RE: Compound filter in for-each
From: "Alan Hale" <A.Hale@xxxxxxxxxx>
Date: Fri, 27 Mar 2009 09:47:52 +0000
RE:  Compound filter in for-each
>>> "Michael Kay" <mike@xxxxxxxxxxxx> 09:40 27 March 2009 >>>

>
> 	<xsl:template match="Folder">
> 			<xsl:for-each
> select="Placemark[ExtendedData/Data/attribute::name='rdb_statu
> s' and ExtendedData/Data/value='Endangered']">

I suspect this still isn't quite right. I suspect you want rdb_status and
Endangered to be present together on the same Data element, whereas you are
selecting any Placemark that has some Data with @name='rdb_status' and some
Data (perhaps a different Data) with value='Endangered'. If I'm right, you
want:

<xsl:for-each select="Placemark[ExtendedData/Data[@name='rdb_status' and
value='Endangered']]">

Michael Kay
http://www.saxonica.com/

Michael - yes, your suspicions are correct.  Many thanks for this amendment.

Alan

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.