Re: [xml-dev] XPath challenge: can you simplify this XPath expression?

From
Andrew Welch <>
To
"Costello, Roger L." <>
Date
2009-05-11T16:06:57Z
ID
<>
Thread
Re: [xml-dev] XPath challenge: can you simplify this XPath expression?
>
> how about:
>
> count(Title, Author, Date) eq count(Author) + 2 eq count(*)

After you have corrected it, of course :)

Something like:

for $x in count((Title, Author, Date)) return $x eq count(Author) + 2
and $x eq count(*)

...but that's nasty, and David's given the best way.



-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/