Error with fn:collection() returning xs:base64Binary instead of nodes after updating Oxygen

Having trouble installing Oxygen? Got a bug to report? Post it all here.
aaron
Posts: 10
Joined: Fri May 22, 2020 6:44 pm

Error with fn:collection() returning xs:base64Binary instead of nodes after updating Oxygen

Post by aaron »

The code below was working fine yesterday - prior to updating my Oxygen version from 22.0 to 22.1 .

Code: Select all

<xsl:for-each select="collection('DITA/?select=*.dita*')">
    <data filename="{tokenize(document-uri(.), '/')[last()]}">
</xsl:for-each>
Now I am getting the error XPTY0004; "The required item type of the first argument of fn:document-uri() is node(); the supplied value xs:base64Binary(...".

Shouldn't collection be returning nodes? The code continues to run without error if used outside of Oxygen, so what is causing this issue?
tavy
Posts: 364
Joined: Thu Jul 01, 2004 12:29 pm

Re: Error with fn:collection() returning xs:base64Binary instead of nodes after updating Oxygen

Post by tavy »

Hello,

Thanks for your feedback.
We have an issue on our issue tracker regarding this problem. We already reported the problem at Saxonica and they fixed it (https://saxonica.plan.io/issues/4476), we need to integrate the fix.
We will update this thread when the issue will be solved.

Best Regards,
Octavian
Octavian Nadolu
<oXygen/> XML Editor
http://www.oxygenxml.com
tavy
Posts: 364
Joined: Thu Jul 01, 2004 12:29 pm

Re: Error with fn:collection() returning xs:base64Binary instead of nodes after updating Oxygen

Post by tavy »

Hello,

We just released yesterday Oxygen XML Editor version 23.0, this contains the fix for the problem you reported.
You can download the latest build from here:
https://www.oxygenxml.com/xml_editor/do ... ditor.html

The fix is available also in Oxygen XML Editor version 22.1. You can download it from here:
https://www.oxygenxml.com/xml_editor/so ... ditor.html

Best Regards,
Octavian
Octavian Nadolu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply