[xsl] Match nodes searching for attributes in children

Subject: [xsl] Match nodes searching for attributes in children
From: cvergara@xxxxxxxxxxxxxxxxxx
Date: Mon, 18 Jan 2010 01:47:14 +0100
Hello,

I want to match a node A that has a child B with an @attr = 1. I tried
this, but it didn't work:

<xsl:template match="//A[B/@attr = 1]">

also this didn't work:

<xsl:template match="//A[B[@attr = 1]]">

Does anyone know how to do it?

Thanks.
Cristobal

Current Thread