[basex-talk] sequences after the path operator

2023-07-06 Thread Graydon Saunders
Hello -- Using BaseX 10.6, the test query let $test as xs:string := "And O Lord the pride of man, broken in the dust again" let $syntax1 as xs:string := analyze-string($test,'\p{Lu}')/(fn:match/concat('[',.,']'),fn:non-match/string()) => string-join('') let $syntax2 as xs:string :=

[basex-talk] Apparent bug when setting @xml:base on element with @base

2023-07-06 Thread Eliot Kimber
This XQuery demonstrates the problem: (::) let $xmlBaseAtt as attribute() := attribute {'xml:base'}{'/foo/bar.xml'} let $transformed1 as element() := try { $doc1 transform with { insert node $xmlBaseAtt into .} } catch * { } let $transformed2 as element() := try { $doc2 transform

Re: [basex-talk] Whitespaces not preserved in TEI documents.

2023-07-06 Thread Christian Grün
Thanks, Andy, much appreciated. I’ve added a BaseX 10 Whitespaces reference to the STRIPWS paragraph [1]. [1] https://docs.basex.org/wiki/Options#STRIPWS On Wed, Jul 5, 2023 at 6:12 PM Andy Bunce wrote: > > Perhaps this addition would be more findable if moved to the STRIPWS > description? >

Re: [basex-talk] Determining if a node is a database node

2023-07-06 Thread Christian Grün
Maybe we still need to find better terms than »database node« and »fragments« to describe the data structures that we use for XML structures (as described in [1]), as the current situation is even more complex: 1. we have fragments (e.g. as the result of ) 2. we have volatile main-memory database

Re: [basex-talk] PHP Client Session Object: infinite loop in read method when bpos is null

2023-07-06 Thread Christian Grün
Hi Tamara, Thanks for introducing error handling in the PHP client in your pull request. I took this as an opportunity to revise some more lines of code. The updated client raises an exception whenever something unexpected happens in any of the socket function calls, and it returns the error