RE: [xsl] Match the element that have children and the attribute this="true" or the parent of the element having the attribute this="true" that does not have children.

Subject: RE: [xsl] Match the element that have children and the attribute this="true" or the parent of the element having the attribute this="true" that does not have children.
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 1 Dec 2005 00:11:56 -0000
> I'd like to match the (element that have (children and the (attribute
> this="true"))) or the parent of the (element (having the attribute
> this="true") (that does not have children)).

Assuming I've parsed your English correctly,

match="*[*][@this="true"] | *[*[not(*)][@this="true"]]"

Michael Kay
http://www.saxonica.com/

Current Thread