Page 1 of 1

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

Posted: Fri May 22, 2020 7:19 pm
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?

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

Posted: Mon May 25, 2020 4:11 pm
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

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

Posted: Fri Nov 20, 2020 1:09 pm
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