Subject: RE: how to select elements based on their children's names?
From: "Conal Tuohy" <conalt@xxxxxxxxxxxxxxx>
Date: Tue, 11 Mar 2003 10:11:43 +1300
|
Robert Day wrote:
> if i want to select all elements that have at least one, say,
> "book" child element, it seems i can do it this way:
>
> //*[name(child::*) = "book"] long way
> //*[name(*) = "book"] shorter way
>
> 1) is this the easiest way to do it?
"//*[book]" seems easier to me ;-)
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|