I'm using SAXON
processor for xsl
file as follows:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0" xmlns:java="http://xml.apache.org/xslt/java"
exclude-result-prefixes="java">
<xsl:output method="xml"/>
<xsl:template name="printjavaDate">
<xsl:variable name="date" select="java:java.util.Date.new()"/>
<xsl:value-of select=""/>
</xsl:template>
But this code isn't working for me.
It throws error:
javax.xml.transform.TransformerException: The URI http://xml.apache.org/xslt/java does not identify an external Java class
at com.icl.saxon.style.StyleElement.styleError(StyleElement.java:803)
I'm not sure why is this happening. I've requirement of using XSLT 1.0 only.
Can I know what is causing this error? Hope experts here will help me out.