Dear BaseX people,

a small observation, which might be regarded as a bug (perhaps not).

It is about the interpretation of options passed to function csv:doc. I set the 'header' option like this:

let $options := map{'header': //header/data()}

with the confusing result that the option is ignored, although the comparison 
    $options?header eq 'yes' 

yields true. If I replace data() with string(), 

let $options := map{'header': //header/string()}

the option works as expected.

Kind regards,
Hans-Jürgen