Find the uuid usig the xslt
<xsl:for-each select="item">
<item id="{my:UUID4()}">
<xsl:value-of select="." />
</item>
</xsl:for-each>
Find the uuid usig the xslt
<xsl:for-each select="item">
<item id="{my:UUID4()}">
<xsl:value-of select="." />
</item>
</xsl:for-each>
This looks like a Saxon error message, so I guess you are using Saxon as your XSLT processor.
Are you trying to call an external Java function? Calling conventions to call external Java code from XSLT vary from one XSLT processor to another, so this is relevant to your question. There are many things you might be doing wrong to cause this error message (for example, the function might not actually exist) so you're going to have to give us more information before we can help you identify the cause.
Information about writing Java extension functions for Saxon can be found at https://www.saxonica.com/documentation12/index.html#!extensibility/extension-functions-J