The below code returns UUID in V4 format i.e 8-4-4-4-12 for a total of 36 characters. I am using https://stackoverflow.com/a/60074845/3747770 to generate the UUID.
<func:function name="Utility:getFormatedV4Uuid">
<func:result>
<xsl:text>uuid.</xsl:text>
<xsl:value-of select="Utility:UUID4()"/>
</func:result>
</func:function>
But the issue is the function Utility:UUID4 some time returns 35 characters instead of 36 characters and I am unable to reproduce the issue.
So I am planning to recursively call the Utility:UUID4 function until it returns 36 characters.
How do I recursively call a function Utility:UUID4 until it returns 36 characters in XSLT 1.0?
Or, is there anyway to fix the issue?