Oxygen XML Editor
 
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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
 
© 2002-2008 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy
This website was created & generated with <oXygen/> XML Editor