Search code examples
xmlxsltmulemule-studiocloudhub

XSLT running in anypoint studio but not running in CloudHub


Hi am using an xslt transformer and using an xsl file am using a function ex:date-time() its running in Anypoint studio but when I try to run in cloudHub its throwing an error
Cannot find a matching 0-argument function named {http://exslt.org/dates-and-times}date-time(). There is no Saxon extension function with the local name date-time (net.sf.saxon.trans.XPathException)

<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema"
	exclude-result-prefixes="xs ">
	<xsl:output method="xml" encoding="UTF-8" indent="yes" />
	<xsl:template match="/">
		<xsl:variable name="var1" select="." />
		<_ord:testOrder 
			xmlns:ex="http://exslt.org/dates-and-times" extension-element-prefixes="ex"
		
			<xsl:attribute name="xsi:schemaLocation"
				namespace="http://www.w3.org/2001/XMLSchema-instance">
				<xsl:value-of select="test" />
			</xsl:attribute>
			<_wcf:ApplicationArea>
			<_oa:CreationDateTime><xsl:value-of select="ex:date-time()"/></_oa:CreationDateTime>
			
			</_wcf:ApplicationArea>
			
	         </_ord:testOrder>
			
	  </xsl:template>
</xsl:stylesheet>


Solution

  • Need separate license to use these functions.I think you are using HE of Saxon.Get Enterprise Edition of Saxon