Altova Mailing List Archives>Archive Index >xml-dev Archive Home >Recent entries >Thread Prev - Re: [xml-dev] XPath challenge: can you simplify this XPath [Thread Next] Re: [xml-dev] XPath challenge: can you simplify this XPathTo: "Costello, Roger L." <costello@-----.---> Date: 5/11/2009 4:08:00 PM > > 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/ _______________________________________________________________________ XML-DEV is a publicly archived, unmoderated list hosted by OASIS to support XML implementation and development. To minimize spam in the archives, you must subscribe before posting. [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/ Or unsubscribe: xml-dev-unsubscribe@l... subscribe: xml-dev-subscribe@l... List archive: http://lists.xml.org/archives/xml-dev/ List Guidelines: http://www.oasis-open.org/maillists/guidelines.php | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
