Re: [xquery-talk] Everything is a sequence ...so ....

2014-01-24 Thread Liam R E Quin
On Sat, 2014-01-25 at 05:43 +, Ihe Onwuka wrote: > ..are there any drawbacks to always using the general comparison form > > thisThing = ('thatThing') > > rather than > > thisThing eq 'thatThing' > > even when you know that you are dealing with a singleton sequence. I find I can catch a lo

[xquery-talk] Everything is a sequence ...so ....

2014-01-24 Thread Ihe Onwuka
..are there any drawbacks to always using the general comparison form thisThing = ('thatThing') rather than thisThing eq 'thatThing' even when you know that you are dealing with a singleton sequence. I am guessing this may be an implementation dependent issue. _

Re: [xquery-talk] Functional XPath commands

2014-01-24 Thread Ihe Onwuka
Then the right answer was very close no just joking. Thanks - nice that you don't have to do any unnecessary function wrapping. On Fri, Jan 24, 2014 at 1:26 PM, Christian Grün wrote: >> but how close would >> (floor,ceiling)[@firstpage + 1]($totalPagesDecimal) have been > > Try this: >

Re: [xquery-talk] Functional XPath commands

2014-01-24 Thread Christian Grün
> but how close would > (floor,ceiling)[@firstpage + 1]($totalPagesDecimal) have been Try this: (floor#1,ceiling#1)[@firstpage + 1]($totalPagesDecimal) ___ talk@x-query.com http://x-query.com/mailman/listinfo/talk

[xquery-talk] Functional XPath commands

2014-01-24 Thread Ihe Onwuka
So I have just written if (@firstpage eq 0) then floor($totalPagesDecimal) else ceiling($totalPagesDecimal) but how close would (floor,ceiling)[@firstpage + 1]($totalPagesDecimal) have been I'm guessing I would at least have to put some function invoking paraphenalia around the calls to floor