Saxon EE not available in Refactoring? Oxygen 19.1

Issues related to W3C XQuery.
dnl
Posts: 14
Joined: Tue Aug 28, 2018 3:51 pm

Saxon EE not available in Refactoring? Oxygen 19.1

Post 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
Radu
Posts: 9431
Joined: Fri Jul 09, 2004 5:18 pm

Re: Saxon EE not available in Refactoring? Oxygen 19.1

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply