I did not observe text quotation during my software tests.
See [1] for some instruction on how to create a reproducible example.
I created a BaseX database from a single XML file which contains the following data for another test approach.
<test_data> <row> <ID>01</ID> <T1>X Y</T1> <T2>Y, X</T2> </row> </test_data>
I tried the following XQuery script out.
declare option output:method "csv"; declare option output:csv "header=yes, quotes=yes, separator=|"; for $x in //test_data/row return <csv> <record> <ID>{$x/ID/data()}</ID> <T1>{$x/T1/data()}</T1> <T2>{$x/T2/data()}</T2> </record> </csv>
Will the corresponding test result need any further clarification?
ID|T1|T2 01|X Y|Y, X
How good does such a data display fit to expectations on desirable software behaviour? https://docs.basex.org/wiki/CSV_Module#Options
Regards, Markus