Error with fn:collection() returning xs:base64Binary instead of nodes after updating Oxygen
Posted: 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 .
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?
Code: Select all
<xsl:for-each select="collection('DITA/?select=*.dita*')">
<data filename="{tokenize(document-uri(.), '/')[last()]}">
</xsl:for-each>
Shouldn't collection be returning nodes? The code continues to run without error if used outside of Oxygen, so what is causing this issue?