Re: Nodes and counting

Subject: Re: Nodes and counting
From: Paul Prescod <papresco@xxxxxxxxxxxxxxxx>
Date: Tue, 30 Sep 1997 11:21:58 -0400
Pawson, David wrote:
> [ What I really want is an  (if-exist (sibling "child2") test - Does one
> exist? I.e. test for a sibling with
> given name, to make me less dependent on the dtd structure.

I don't see how this relates to the problem above, but I think something
like this would work:

(not (node-list-empty? (select-elements (siblings (current-node))
"child2")))

Untested but I think it captures what you wanted to do.

 Paul Prescod

 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread