[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] Duality of quantifiers
- From: Peter Flynn <peter@silmaril.ie>
- To: xml-dev@lists.xml.org
- Date: Tue, 10 Jul 2018 23:06:48 +0100
On 10/07/18 22:42, Costello, Roger L. wrote:
> Hi Folks,
>
> So, you’ve got an XML document containing a bunch of integers:
>
> <Test>
> <x>2</x>
> <x>4</x>
> <x>5</x>
> <x>7</x>
> <x>10</x>
> …
> </Test>
>
> You want to know: Is it true that not all the integers are even?
I'd test if count(Test/x[. mod 2 gt 0])=0
But I don't know if there is a penalty in processing that compared with
the more complex solutions.
///Peter
--
Peter Flynn | Principal Consultant | Silmaril Consultants | Cork 🇮🇪
Ireland | ☎ +353 86 824 5333 | ✉ peter@silmaril.ie | 🌍
blogs.silmaril.ie/peter
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]