Re: [basex-talk] sequences after the path operator

2023-07-07 Thread Graydon Saunders
Hi Christian -- *> The document order can only be restored if the result of an expression is a sequence of nodes.* Thank you! That does help, in as much as I was thinking that the order came from the left side, not the right side. I feel much less confused now. (I used an if in the original

Re: [basex-talk] sequences after the path operator

2023-07-07 Thread Christian Grün
Hi Graydon, The document order can only be restored if the result of an expression is a sequence of nodes. In the given case, … analyze-string($test,'\p{Lu}')/( fn:match/concat('[',.,']'), fn:non-match/string() ) …two string sequences are generated (for matches and non-matches) which have

[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 :=