Guten Tag,Love my basex, have been using it for years. I particularly love being able to have access to all the powerful 2.0 syntax.But I have a question about some behavior I am seeing in the following-sibling axis that does not seem logical to me.
Here is the data stored in basex:> xquery /text[@id='test']<text id="test"><clause><word>A</word>a<word>B</word><word>C</word>c</clause></text>
How did you store/parse it, in particular did you use any options
to strip white space?
Here is the query on that data:> xquery /text[@id='test']//word/concat(text(), ' ', normalize-space(./following-sibling::text()[1]))A aB cC c
The same query run in https://www.freeformatter.com/xpath-tester.html in the same xml gives me the predictable result that I need:String='A a’String='B ‘String='C c'
Is there any way to alter my query to get the above result in basex? I imagine that this an xpath1.0 vs xpath2.0 issue.
That path with a function call in the (last) step isn't allowed
in XPath 1.0 at all.