Subject: Re: Re: how to select elements based on their children's names?
From: "Robert P. J. Day" <rpjday@xxxxxxxxxxxxxx>
Date: Mon, 10 Mar 2003 16:36:40 -0500 (EST)
|
On Mon, 10 Mar 2003, Dimitre Novatchev 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
>
> These are both wrong -- they match all elements whose *first* child's name
> is "book".
yup, this has been pointed out to me in no uncertain terms. live
and learn.
rday
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|