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

RE: [xsl] Identifying sets of child elements that meet a certain condition


Subject: RE: [xsl] Identifying sets of child elements that meet a certain condition
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 11 Feb 2008 15:41:37 -0000

> In the following XML document, I'm trying to identify the 
> component nodes that do not contain an attribute with the 
> name "a." In the example, the only component that meets this 
> criterion is "3."

/data/component[not(attribute/@name='a')]

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


Current Thread
Keywords
xml