Re: [basex-talk] Strange behavior while adding existing elements into new element.

2017-06-21 Thread Jan Dölle
Hi Christian, update {} as "quick copy" work. Beside I checked the $sequence-of-elements for the special situation and it only contains elements from a document created by parse-xml. But the function which creates the sequence compares document elements against some database elements and

Re: [basex-talk] Strange behavior while adding existing elements into new element.

2017-06-20 Thread Christian Grün
Hi Jan, This reminds me of an open GitHub issue [1], but it’s just a guess. Does your query work as expected if you append "update { }" to your newly constructed element? let $new-element := element el { $sequence-of-elements } update { } In BaseX, there are two different types of

[basex-talk] Strange behavior while adding existing elements into new element.

2017-06-20 Thread Jan Dölle
Hi, just before you asking me. No we wasn't to isolate the Problem for now. Working on a complex transaction with database involved, we get the following phenomenon. declare function m:paths($el as element()) as xs:string* { distinct-values( for $e in $item/descendant::* return