xsl-list
[Top] [All Lists]

[xsl] Match nodes searching for attributes in children

2010-01-17 18:47:43
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[(_at_)attr = 1]]">

Does anyone know how to do it?

Thanks.
Cristobal



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--