Error encountered in XSLT extension - help needed urgently

Hi All,

I have been trying to call my java program from xsl but it seems to give error as depicted below:
file:///C:/xslt/java/sample.xsl; Line #21; Column #60; XSLT Error (javax.xml.transform.TransformerException): javax.xml.transform.TransformerException: java.lang.ClassNotFoundException: HelloDate
I have read a lot of article and followed exactly the way but it still throws me this.



My xslt file:
<?xml version="1.0"?>
<xsl:stylesheet
xmlns:xsl=“http://www.w3.org/1999/XSL/Transform
version=“1.0”
xmlns:java=“http://xml.apache.org/xalan/java"
exclude-result-prefixes=“java”>


<xsl:template match=”/">
<xsl:variable name=“date”>2004-12-20 01:01:01</xsl:variable>
<xsl:variable name=“format”>dd/mm/yyyy</xsl:variable>


Date: <xsl:value-of select=“java:HelloDate.getDate($date, $format)”/>


</xsl:template>
</xsl:stylesheet>



My java file:
import java.text.SimpleDateFormat;
import java.sql.Timestamp;

public class HelloDate
{
public static String getDate(String inputDate, String dateFormat)
{
String outPutDate = “”;
System.out.println("dateFormat " + dateFormat);

if ( inputDate != null && inputDate != “”)
{
SimpleDateFormat patternDateTimeFormat = new
SimpleDateFormat ( dateFormat );
outPutDate = patternDateTimeFormat.format
(Timestamp.valueOf ( inputDate ) );
System.out.println(outPutDate);
}
else
{
outPutDate = “”;
}
return outPutDate;
}
}


Please help to run it.

Hello there,

Try to give your HelloDate a package like :

test.HelloDate

Cheers.

Bertrand Martel
Software AG France

Hello Bertrand,

I have added a package(named sample) and there is error as follows.
(Location of error unknown)XSLT Error (javax.xml.transform.TransformerException): javax.xml.transform.TransformerException: java.lang.ClassNotFoundException: sample/HelloDate

It seems like it could not locate my class in my pc. What steps do u foresee that I have missed out.

Thanks a lot.
Regards