Hi Lars,
this behavior is a feature indeed, because the empty strings don't contribute to the result.
Do you encounter any problems when processing the resulting CSV output? If yes, we could have another look at this.
Best, Christian
I have a question about csv:serialize and blank nodes. Trailing blanks are indicated with a separator, but those in the middle are.
csv:serialize( <rows> <row> <f>1</f> <s>2</s> <t>3</t></row> <row> <f></f> <s></s> <t>3</t></row> <row> <f>1</f> <s></s> <t>3</t></row> <row> <f>1</f> <s></s> <t></t></row> <row> <f>1</f> <s>2</s> <t></t></row> </rows>)
Here is the output (BaseX 7.8.1) , where line 4 and 5 are missing trailing separators:
1,2,3 ,,3 1,,3 1 1,2
Could this be fixed, or is it a feature?
All the best Lars G Johnsen National Library of Norway
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk