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: 1
Joined: Fri May 22, 2020 6:44 pm

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

Post by aaron » Fri May 22, 2020 7:19 pm

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

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

Post Reply