This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
XPath: all elements with only non-parent children with identical style attr
- From: Tobias Reif <tobiasreif at pinkjuice dot com>
- To: XSL-List at lists dot mulberrytech dot com
- Date: Tue, 11 Dec 2001 20:10:46 +0100
- Subject: [xsl] XPath: all elements with only non-parent children with identical style attr
- Reply-to: xsl-list at lists dot mulberrytech dot com
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