Reputation: 41
I've a xml and xsl and I am trying to do the transformation using XMLSPY 2023 professional edition. The xsl has
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:fn="http://www.w3.org/2005/02/xpath-functions"
xmlns:xdt="http://www.w3.org/2005/02/xpath-datatypes"
xmlns:math="java.lang.Math
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/1999/xhtml"
and some where inside a template refers to math.random() as shown below:
<xsl:variable name="randonId" select="math:random()"/>
Now I do XSL/XQUERY --> XSL Transformation from the menu item in XML SPY editor, it throws this error below. Any idea what setting I should to fix this error?
XSLT 2.0 Debugging Error: An Error occurred while trying to start the debugger! (Error: file:///C:/myxsl.xsl:648: Unknown function 'math:random' Details: XPST0017: The function call 'math:random' does not match the name of a function in the static context)
Upvotes: 1
Views: 76