Subject: Re: [xsl] Compound filter in for-each From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 24 Mar 2009 15:43:22 -0400 |
Still working on XML derived from Google Earth KML. I want to filter on
particular ExtendedData/Data name and value combinations. Here is an
extract of relevant XML:
<Placemark>
..................
<ExtendedData>
<Data name "sciencName">
<value>Euphrasia micrantha</value>
</Data>
<Data name "grid_ref">
<value>SN701822</value>
</Data>
<Data name "eng_name">
<value>An Eyebright</value>
</Data>
<Data name "rdb_status">
<value>Endangered</value>
</Data>
.........................
</ExtendedData>
............................
</Placemark>
So I guess what I am looking for is something like:
<xsl:for-each select "Placemark/ExtendedData/Data[@name 'rdb_status'and value
'Endangered']">
- though this doesn't work (in XML Notepad I just get the unhelpful error message "Input string was not in a correct format.")
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Compound filter in for-each, Alan Hale | Thread | Re: [xsl] Compound filter in for-ea, Alan Hale |
[xsl] Compound filter in for-each, Alan Hale | Date | Re: [xsl] Pattern question: first c, Wendell Piez |
Month |