Re: [basex-talk] have a query report a warning?

2022-03-04 Thread Graydon Saunders
Hi Christian -- A definitive no means I can stop looking; thank you! I think I will probably just put the warnings in the report being generated in what is maybe the more XML-appropriate way. Much appreciated, Graydon On Fri, Mar 4, 2022 at 4:57 AM Christian Grün wrote: > Hi Graydon, > > In

Re: [basex-talk] have a query report a warning?

2022-03-04 Thread Christian Grün
Hi Graydon, In XQuery, there is no such thing as a warning function. If we included such a function in BaseX, we’d probably need to define rules for each API (GUI, clients, RESTXQ, others) how to return such warnings. If you use BaseX on command-line, however, all output of fn:trace, prof:dump,

[basex-talk] have a query report a warning?

2022-03-03 Thread Graydon Saunders
Hello all -- XPath has an error function, https://www.w3.org/TR/xpath-functions-31/#func-error which stops processing, which isn't wanted when it's just a warning. ("this thing has problems; on to the next thing" shouldn't stop processing.) XPath has a trace function,