BaseX-Talk Digest, Vol 167, Issue 9
Friday, 24 November 2023 · 2 messages
RS
Rob Stapper24 Nov 2023 12:25 #
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 WindowsQuoted text · basex-talk-request at mailman.uni-konstanz.de · 86 lines
From: basex-talk-request at mailman.uni-konstanz.de Sent: Friday, November 24, 2023 12:00 PM To: basex-talk at mailman.uni-konstanz.de Subject: BaseX-Talk Digest, Vol 167, Issue 9 Send BaseX-Talk mailing list submissions to basex-talk at 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 at mailman.uni-konstanz.de You can reach the person managing the list at basex-talk-owner at 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 at gmail.com> To: Andy Bunce <bunce.andy at gmail.com> Cc: BaseX <basex-talk at mailman.uni-konstanz.de> Subject: Re: [basex-talk] BaseX 10.7 and util:if Message-ID: <CAP94bnN+BFAv6cRqvRwiDMLSw6hqN7pU12PcgUeN54XF-BwoAw at 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 at 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mailman.uni-konstanz.de/pipermail/basex-talk/attachments/20231123/57f57d28/attachment-0001.htm> ------------------------------ Message: 2 Date: Thu, 23 Nov 2023 16:20:15 +0000 From: Andy Bunce <bunce.andy at gmail.com> To: BaseX <basex-talk at mailman.uni-konstanz.de> Subject: [basex-talk] Debugging XML catalog with BaseX 10.7 Message-ID: <CAPH12r19Jg=avu_he6ZKProwM4GuG5CUTgmfoZEtsFXk7yk5nw at mail.gmail.com> Content-Type: text/plain; charset="utf-8" Hi, I am following the guide at [1] with the aim of loading some XML with a variety of DTD doctypes. I have a catalog.xml set (which works in another app) and in lib/custom I have - saxon-he-10.9.jar - xmlresolver-5.2.2-data.jar - xmlresolver-5.2.2.jar - xmlresolver.properties It is not working as I hoped. Is there a way to get debug info from xmlresolver to a file without going to the Java level? The guide says "You must configure your environment with an appropriate logging backend." [2] I guess this is about SLF4J <http://www.slf4j.org/> but I have no experience here. /Andy [1] https://docs.basex.org/wiki/Catalog_Resolver [2] https://xmlresolver.org/ch06#xml.catalog.defaultLoggerLogLevel -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mailman.uni-konstanz.de/pipermail/basex-talk/attachments/20231123/5bcb5957/attachment-0001.htm> End of BaseX-Talk Digest, Vol 167, Issue 9 ****************************************** Virus-free.www.avast.com
CG
Christian Grün24 Nov 2023 12:31 #
Quoted text · Rob Stapper · 6 lines
> > Hi Rob, > 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. >
From a syntactical view,
util:if is just a function (which simulates the behavior of the standard “if expression”).
Does this help?
Christian
<#m_929262194324372041_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>Quoted text · Rob Stapper · 1 line
>
Written for BaseX 10.7. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery