Simple delete bug

Wednesday, 30 March 2022 · 3 messages
CG
Christian Grünin reply to Jonathan Robie, 30 Mar 2022, 17:1930 Mar 2022 15:24 #

Hi Jonathan,

Quoted text · Jonathan Robie · 1 line
> delete //m/@n

This may be surprising, but your expression is a valid query: It’s a path expression starting with an initial child::delete step.

Best, Christian

JR
Jonathan Robie30 Mar 2022 17:19 #

Expressions like this fail silently without raising an error in BaseXGUI:

delete //m/@n

Of course, it should be:

delete nodes //m/@n

But there should be an error to remind me ;->

Jonathan

JR
Jonathan Robiein reply to Christian Grün, 30 Mar 2022, 15:2430 Mar 2022 17:34 #

DOH.

Yeah, you're right.

Jonathan

Quoted text · Christian Grün · 12 lines
On Wed, Mar 30, 2022 at 9:25 AM Christian Grün <christian.gruen at gmail.com> wrote: > Hi Jonathan, > > > delete //m/@n > > This may be surprising, but your expression is a valid query: It’s a > path expression starting with an initial child::delete step. > > Best, > Christian >

⚡Generated with XQuery