This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]