Re: [xsl] Keys with duplicates should be simple

Subject: Re: [xsl] Keys with duplicates should be simple
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
Date: Sat, 1 Feb 2014 11:09:14 +0000
> 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))]




-- 
Andrew Welch
http://andrewjwelch.com

Current Thread