| 
 
Subject: Re: [xsl] Compound filter in for-each From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Fri, 27 Mar 2009 12:39:42 -0400  | 
<xsl:template match="Folder"> <xsl:for-each select="Placemark[ExtendedData/Data/attribute::name='rdb_status' and ExtendedData/Data/value='Endangered']"> <xsl:value-of select="@id" />, <xsl:value-of select="name" />, <xsl:value-of select="ExtendedData/Data[@name='location_name']/value"/>, <xsl:value-of select="ExtendedData/Data[@name='grid_ref']/value"/>, <xsl:value-of select="ExtendedData/Data[@name='rdb_status']/value"/>, <xsl:value-of select="ExtendedData/Data[@name='last_seen']/value"/>, <br/> </xsl:for-each> </xsl:template>
the <xsl:for-each> element being the most significant in the context of this problem.
<xsl:template match="Folder">
  <xsl:apply-templates select="Placemark[ExtendedData/Data
    [attribute::name='rdb_status' and value='Endangered']]"/>
  </xsl:template><xsl:template match="Placemark"> <xsl:value-of select="@id" />, <xsl:value-of select="name" />, <xsl:value-of select="ExtendedData/Data[@name='location_name']/value"/>, <xsl:value-of select="ExtendedData/Data[@name='grid_ref']/value"/>, <xsl:value-of select="ExtendedData/Data[@name='rdb_status']/value"/>, <xsl:value-of select="ExtendedData/Data[@name='last_seen']/value"/>, <br/> </xsl:template>
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 -> | 
|---|---|---|
| RE: [xsl] Compound filter in for-ea, Alan Hale | Thread | Re: [xsl] Compound filter in for-ea, Alan Hale | 
| Re: [xsl] Numbering new nodes using, G. Ken Holman | Date | Re: [xsl] Need help combing two ele, Wendell Piez | 
| Month |