Saxon EE not available in Refactoring? Oxygen 19.1
Posted: Fri Feb 22, 2019 1:04 pm
In an XQuery Update script, whenever I try to use an XPath 3.1 map expression, the script fails in XML Refactoring ("To use XPath 3.1 syntax, you must configure the XPath parser to handle it").
However, when I run the same XQU with a Transformation scenario on Saxon EE, it works without problems.
Is this a bug, that I cannot use maps in Refactoring but in Transformation Scenarios?
Oxygen version 19.1
XML:
XQU:
However, when I run the same XQU with a Transformation scenario on Saxon EE, it works without problems.
Is this a bug, that I cannot use maps in Refactoring but in Transformation Scenarios?
Oxygen version 19.1
XML:
Code: Select all
<root>
<entry count="1">One</entry>
<entry count="2">Two</entry>
</root>
XQU:
Code: Select all
declare namespace saxon="http://saxon.sf.net/";
declare namespace map="http://www.w3.org/2005/xpath-functions/map";
declare option saxon:output "method=xml";
declare option saxon:output "indent=no";
let $xml := doc(document-uri(/))/root
let $map :=
map:merge(for $x in $xml//entry
return map{$x!@count : $x!text()})
let $new_entries := for $entry in map:keys($map)
return $entry
return
insert node $new_entries as last into $xml