[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Keys with duplicates should be simple
On Sat, Feb 01, 2014 at 11:09:14AM +0000, Andrew Welch scripsit: > > I still want a better syntax for using negated except in predicates, > > such as: > > > > div[not(* except (heading,para))] > > > > ("div elements which have only heading and para child elements" only > > it's really "div elements where none of the child elements are anything > > except heading and para") > > I usually do this: > > div[count(*) = count((heading,para))] Well, in 2.0 I think I want eq there, but yes. That's much simpler. I have a bit of a "count() is expensive, don't use count() unless you can't escape" tick, but should probably profile this and see if that's a tick remains justified. Thanks! Graydon
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|