Re: [xsl] XPath: all elements with only non-parent children with identical style attr

Subject: Re: [xsl] XPath: all elements with only non-parent children with identical style attr
From: Tobias Reif <tobiasreif@xxxxxxxxxxxxx>
Date: Wed, 12 Dec 2001 01:49:54 +0100
Chris,

thanks, but I need it to be pure XPath; it'll be used in a Ruby program, not an XSLT one.

Jeni kindly provided me this one:

 *[* and
    not(*/node()) and
    not(*[not(@style)]) and
    not(*/@style != */@style)]

Tobi


-- Tobias Reif http://www.pinkjuice.com/myDigitalProfile.xhtml

go_to('www.ruby-lang.org').get(ruby).play.create.have_fun
http://www.pinkjuice.com/ruby/


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread