[xsl] xsl:script - again!

Subject: [xsl] xsl:script - again!
From: Zeynep Gunal <z.gunal@xxxxxxxxxxxxxxxx>
Date: Fri, 23 Feb 2001 13:58:11 +0100

I have a tiny javascript that I am trying to embed in my XSLT sheet (XSLT
1.1) - no luck!

This is what I have:

          <xsl:template name="get-date">
              <xsl:value-of select="user:GetDateTime()" />

          <xsl:script language="javascript"
              function GetDateTime()
                return "hello";

This is the error I get:

          org.xml.sax.SAXException: Instance method call to
          method GetDateTime requires an Object instance as first argument

What does that mean? What am I doing wrong?



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread