Hi Christian, Thnx. You made me a bit worrying there. Just a thought: shouldn’t util:if not just be part of the regular BaseX syntax? Together with fn:for-each, the fn:fold functions and hof:fold-left1, they represent the group of procesflow-controll-functions. Best, Rob Sent from Mail for Windows From: basex-talk-request@mailman.uni-konstanz.de Sent: Friday, November 24, 2023 12:00 PM To: basex-talk@mailman.uni-konstanz.de Subject: BaseX-Talk Digest, Vol 167, Issue 9 Send BaseX-Talk mailing list submissions to basex-talk@mailman.uni-konstanz.de To subscribe or unsubscribe via the World Wide Web, visit https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk or, via email, send a message with subject or body 'help' to basex-talk-request@mailman.uni-konstanz.de You can reach the person managing the list at basex-talk-owner@mailman.uni-konstanz.de When replying, please edit your Subject line so it is more specific than "Re: Contents of BaseX-Talk digest..." Today's Topics: 1. Re: BaseX 10.7 and util:if (Christian Gr?n) 2. Debugging XML catalog with BaseX 10.7 (Andy Bunce) ---------------------------------------------------------------------- Message: 1 Date: Thu, 23 Nov 2023 15:30:47 +0100 From: Christian Gr?n <christian.gruen@gmail.com> To: Andy Bunce <bunce.andy@gmail.com> Cc: BaseX <basex-talk@mailman.uni-konstanz.de> Subject: Re: [basex-talk] BaseX 10.7 and util:if Message-ID: <CAP94bnN+BFAv6cRqvRwiDMLSw6hqN7pU12PcgUeN54XF-BwoAw@mail.gmail.com> Content-Type: text/plain; charset="utf-8" Hi Andy, hi Rob, util:if is back again. Just give me a note if there are other functions in the Utility Module (or in the HOF Module) that you rely on. Best, Christian On Mon, Nov 20, 2023 at 1:15?PM Andy Bunce <bunce.andy@gmail.com> wrote:
Hi, The documentation for the utility module [1] says certain functions will be removed in version 11 because they will be in XPath 4.0. However, util:if has been removed from the documentation and I think there is no equivalent function in this case. util:if is an alternative syntax for the BaseX Ternary operator [2].
( I have used it because it was easier than trying to get my XQuery parser EBNF to accept $ok ?? 1 !! 0 etc)
Is util:if to be removed?
/Andy [1] https://docs.basex.org/wiki/Utility_Module#util:if [2] https://docs.basex.org/wiki/XQuery_Extensions#Ternary_If