Page 1 of 1

Saxon EE not available in Refactoring? Oxygen 19.1

Posted: Fri Feb 22, 2019 1:04 pm
by dnl
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:

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

Re: Saxon EE not available in Refactoring? Oxygen 19.1

Posted: Fri Feb 22, 2019 2:41 pm
by Radu
Hi,

I can reproduce the problem with Oxygen 19.1 but I can no longer reproduce it with Oxygen 20.1.
Probably the fact that we kept upgrading the Saxon XSLT processor between Oxygen releases made things work at some point.

Regards,
Radu