More breaking changes on the way to 13

Monday, 3 August 2026 · 6 messages · last reply 4 Aug 2026
ML
Marco Lettere3 Aug 2026 12:38 #

Sorry for bothering again,

when opening my project with the latest UI snapshot I get notified of the two following errors:

Quoted text · 1 line
> Unknown function string:format.

I suppose I need to move to string constructors `` in that point. Right?

Quoted text · 1 line
> Unknown annotation: %ws:header-param

This is a bit less clear how to fix...

Ciao,

Marco.

AB
Andy Bunce3 Aug 2026 17:21 #

Hi Marco,

Re the websocket annotation: Not tried it yet, but I think the guidance is at the bottom of https://docs.basex.org/13/WebSockets

Something like ...

1. remove %ws:header-param(hdname,argname) 2. remove argname from function arguments 3. insert let $argname:=request:header(hdname)

/Andy

Quoted text · Marco Lettere · 19 lines
On Mon, 3 Aug 2026 at 11:38, Marco Lettere via BaseX-Talk < basex-talk at mailman.uni-konstanz.de> wrote: > Sorry for bothering again, > > when opening my project with the latest UI snapshot I get notified of the > two following errors: > > > Unknown function string:format. > > I suppose I need to move to string constructors `` in that point. Right? > > > Unknown annotation: %ws:header-param > > This is a bit less clear how to fix... > > Ciao, > > Marco. >
ML
Marco Lettere3 Aug 2026 17:29 #

Ah, ok.

Thanks.

M.

Quoted text · Andy Bunce · 36 lines
On 8/3/26 17:21, Andy Bunce wrote: > Hi Marco, > > Re the websocket annotation: > Not tried it yet, but I think the guidance is at the bottom of > https://docs.basex.org/13/WebSockets > > Something like ... > > 1. remove %ws:header-param(hdname,argname) > 2. remove argname from function arguments > 3. insert let $argname:=request:header(hdname) > > /Andy > > On Mon, 3 Aug 2026 at 11:38, Marco Lettere via BaseX-Talk > <basex-talk at mailman.uni-konstanz.de> wrote: > > Sorry for bothering again, > > when opening my project with the latest UI snapshot I get notified > of the two following errors: > > > Unknown function string:format. > > I suppose I need to move to string constructors `` in that point. > Right? > > > Unknown annotation: %ws:header-param > > This is a bit less clear how to fix... > > Ciao, > > Marco. >
CG
Christian Grünin reply to Marco Lettere, 3 Aug 2026, 12:384 Aug 2026 15:22 #
Quoted text · Marco Lettere · 1 line
> Unknown function string:format.

I suppose I need to move to string constructors `` in that point. Right?

For strings, you can now use fn:pad-strings [1].

Hope this helps, Christian

[1] https://docs.basex.org/13/String_Functions

AB
Andy Bunce4 Aug 2026 16:02 #

But fn:pad-strings just pads, no? string:format wrapped Java printf [1] /Andy

[1] https://docs.basex.org/main/String_Functions#string:format

Quoted text · Christian Grün · 13 lines
On Tue, 4 Aug 2026 at 14:22, Christian Grün via BaseX-Talk < basex-talk at mailman.uni-konstanz.de> wrote: > > Unknown function string:format. > > I suppose I need to move to string constructors `` in that point. Right? > > For strings, you can now use fn:pad-strings [1]. > > Hope this helps, > Christian > > [1] https://docs.basex.org/13/String_Functions >
CG
Christian Grün4 Aug 2026 16:42 #

…true indeed. For other types, format-integer, format-number or format-(date|time|dateTime) can be used.

Quoted text · Andy Bunce · 15 lines
Von: Andy Bunce <bunce.andy at gmail.com> Gesendet: Dienstag, 4. August 2026 16:02 An: Christian Grün Cc: basex-talk at mailman.uni-konstanz.de; Marco Lettere Betreff: Re: [basex-talk] Re: More breaking changes on the way to 13 But fn:pad-strings just pads, no? string:format wrapped Java printf [1] /Andy [1] https://docs.basex.org/main/String_Functions#string:format On Tue, 4 Aug 2026 at 14:22, Christian Grün via BaseX-Talk <basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de>> wrote: > Unknown function string:format. I suppose I need to move to string constructors `` in that point. Right? For strings, you can now use fn:pad-strings [1]. Hope this helps, Christian [1] https://docs.basex.org/13/String_Functions

⚡Generated with XQuery