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

Subject: [xsl] XPath: all elements with only non-parent children with identical style attr
From: Tobias Reif <tobiasreif@xxxxxxxxxxxxx>
Date: Tue, 11 Dec 2001 20:10:46 +0100
Hi,

I'm looking for an XPath which returns all elements that
  * have only children that are no parents
    (= have no children @ all: no textnodes, no whitespace nodes, etc)
    * all of those (diverse) children have a style attribute with
      the exact same value

so that from

<root>
  <foo>
   <bar style="baz"/>
   <blah style="baz"/>
   <blam style="baz"/>
  </foo>
</root>

element foo would be returned.

TIA,
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