Conflict of the csv-options namespace and the default namespace

Bug #1057978 reported by Alexey Stukalov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
New
High
Chris Hillery

Bug Description

When specifying options for csv:serialize/parse(), the enclosed tags of <csv-options:options> should contain no namespace prefix, i.e.

<csv-options:options>
    <first-row-is-header ignore-foreign-input="true"/>
    <csv separator="&#9;"/>
</csv-options:options>

otherwise zorba raises a validation error.

However, when the default namespace is declared in the .xq script, these internal tags are interpreted as belonging to the default namespace and not the csv-options one, and it also leads to an error.

The working solution is then not to declare the default namespace, but the drawback is that its prefix has to be specified explicitly throughout the whole script and in the generated file XML elements the come from user script would have xmlns declaration.

Is it possible to ignore the default namespace while validating the csv-options (or any other options, as it might be a more general problem) or allow explicit namespace specification there?

Changed in zorba:
importance: Undecided → High
assignee: nobody → Chris Hillery (ceejatec)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.