This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: xsl:script - again!


I think we need to know your processing environment.

Mike Kay

> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of 
> Zeynep Gunal
> Sent: 23 February 2001 12:58
> To: 'xsl-list@lists.mulberrytech.com'
> Subject: [xsl] xsl:script - again!
> 
> 
> Hi,
> 
> 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:template>
> 
>           <xsl:script language="javascript"
>                         implements-prefix="user">
>               <![CDATA[
>               function GetDateTime()
>               {
>                 return "hello";
>               }
>               ]]>
>           </xsl:script>
> 
> 
> 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?
> 
> Cheers,
> 
> Zeynep
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]