[Home] [By Thread] [By Date] [Recent Entries]
Alan,
At 02:47 PM 3/24/2009, you wrote: Still working on XML derived from Google Earth KML. I want to filter on You might want select="Placemark/ExtendedData/Data[@name='rdb_status'][.='Endangered'] which is effectively the same as select="Placemark/ExtendedData/Data[@name='rdb_status' and .='Endangered'] But it's impossible to say absolutely without knowing more about what you haven't told us. The "." in that expression is short for XPath "self::node()", which is to say a reference to the context node. So ".='Endangered'" is a test for whether the context node of the evaluation (viz., each Data element selected by the path) has the string value "Endangered". Whether you use one predicate with an "and" operator to join your tests, or two predicates, doesn't make any practical difference here. 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 ======================================================================
|

Cart



