Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

Match get all nodes with a parent with a child of a certain value

$
0
0

Hello,

I need to get all notice nodes that have a category = Collection. Here is what I have so far but its not working:

<xsl:template match="a:notice[category = 'Collection']"><xsl:param name="prev_id"/><xsl:copy><xsl:variable name="cur_id"><xsl:value-of select="$prev_id"/></xsl:variable><xsl:element name="idPrimary"><xsl:value-of select="$cur_id"/></xsl:element><xsl:apply-templates select="@*|node()"><xsl:with-param name="prev_id" select="$cur_id"/></xsl:apply-templates></xsl:copy></xsl:template>

Any ideas?


Viewing all articles
Browse latest Browse all 935

Trending Articles