Assume the query:
let $ic := collection("file:///Users/jalvaro/XML/XMarkDocs/XMarkClosedAuctions/file0.xml")//closed_auction
let $s := $ic//seller[@person != "person12"]
return $s
where $s is nested and optional. Those records for which $s contains a value have 3 fields, but those for which $s does not contain anything have 2 fields, hance resulting in exceptions when constructing the result. Instead, they should contain 3 fields, with the non-valued fields should contain an empty string.
Assume the query: let $ic := collection("file:///Users/jalvaro/XML/XMarkDocs/XMarkClosedAuctions/file0.xml")//closed_auction let $s := $ic//seller[@person != "person12"] return $s
where $s is nested and optional. Those records for which $s contains a value have 3 fields, but those for which $s does not contain anything have 2 fields, hance resulting in exceptions when constructing the result. Instead, they should contain 3 fields, with the non-valued fields should contain an empty string.
The extractor should be investigated.