Skip to content

Commit

Permalink
Fix XML output regression
Browse files Browse the repository at this point in the history
  • Loading branch information
Mau Zsofia Abraham committed May 14, 2024
1 parent 93d7856 commit ab0fb82
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions vicav.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -1454,8 +1454,7 @@ function vicav:_get_feature_labels() {
'xslt/feature_labels-json.xslt')
return serialize($renderedJson, map {"method": "json"})
else
(web:response-header(map {'method': 'xml'}, map:merge((cors:header(()), vicav:return_content_header()))),
<features>{$out}</features>)
<features>{$out}</features>
};


Expand Down Expand Up @@ -1519,8 +1518,7 @@ declare function vicav:_get_data_words($type as xs:string*) {
'xslt/data_words-json.xslt')
return serialize($renderedJson, map {"method": "json"})
else
(web:response-header(map {'method': 'xml'}, map:merge((cors:header(()), vicav:return_content_header()))),
<words>{$out}</words>)
<words>{$out}</words>
};


Expand Down

0 comments on commit ab0fb82

Please sign in to comment.