Hi France,
you should get the desired result by adding the following line to the beginning of your query:
declare option output:indent 'no';
Hope this helps, Christian
PS: I’ll try my best to answer your pending mail tomorrow. ___________________________
2013/10/5 France Baril france.baril@architextus.com:
Hi,
I'm getting extra spaces after a node replace.
Code:
let $original := <div><p>I love flowers (<specify/>).</p> <p>I love flowers: <specify/>.</p></div>
let $specify := <b><i>red, yellow and white ones</i></b>
let $new := copy $copy := $original modify(for $prompt in $copy//specify return replace node $prompt with $specify) return $copy
I would expect $new to give:
I love flowers (red, yellow and white ones).
I love flowers: red, yellow and white ones.
But I get extra spaces inside the parenthesis of the first sentence and before the period of the second sentence:
I love flowers ( red, yellow and white ones ).
I love flowers: red, yellow and white ones .
You can try my .xqm on BaseX 7.7
- Create a DB 'test' with chop white spaces to 'no'.
- Run access http://localhost:8984/test-extra-spaces/test-1 from your
browser. 3. Look at the .xml in the test DB. It has extra carriage return. It looks like the query assumed that <i> was a block and it felt compelled to add a carriage return and indent.
-- France Baril Architecte documentaire / Documentation architect france.baril@architextus.com (514) 572-0341
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk