What you are trying is XSLT 1.1 syntax, that is not supported by this
xalan version as fare as i know.
See http://xml.apache.org/xalan-j/extensions.html for the propietary
xalan extension syntax.

Stefan

> -----Ursprüngliche Nachricht-----
> Von: Malay Das [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 20. März 2002 20:46
> An: [EMAIL PROTECTED]
> Betreff: Extension functions
> 
> 
> Hi,
> 
> I am trying out the extension function to print out the 
> current date - with
> these.
> 
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>                 xmlns:xlink="http://www.w3.org/1999/xlink";
>                 xmlns="http://www.brandsoft.com";
>               xmlns:Date="java:java.util.Date"
>               version="1.1">
> <xsl:script language="java" implements-prefix="Date"
> src="java:java.util.Date"/>
> ..
> ..
> 
> Today's Date :: <xsl:value-of 
> select="Date:toString(Date:new())"/></td>
> 
> I am getting this error in component log -
> 
> javax.xml.transform.TransformerException:
> javax.xml.transform.TransformerException: Instance method 
> call to method new
> requires an Object instance as first argument
> 
> is not new a special function interpreted as constructor..... 
> whats wrong..
> 
> -md

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to