[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Java method call error

Subject: RE: Java method call error
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Thu, 31 Jan 2002 09:33:42 -0000
xslt instance method call
The rules for calling extension functions depend on the XSLT processor you
are using, so there's no way of answering this without knowing the
processor.

An observation: you are using the <xsl:script> element which was defined in
the XSLT 1.1 WD, but your stylesheet specifies version 1.0.

Mike Kay

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Khalid Ali
> Sent: 31 January 2002 05:17
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Java method call error
>
>
> Hello,
> below is the error I get
>
> "XSLT Error (javax.xml.transform.TransformerException):
> Instance method call
> to method todays requires an Object instance as first argument"
>
> Can any one please find out what causes this error and whats
> the solution to
> it.
> below is the xsl code
>
> <xsl:stylesheet
>   version = "1.0"
>          xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>          <xsl:script language="java" implements-prefix="Date"
>          src="http://localhost:8100/servlet/systemstart.DateHandler"
>
> xmlns:Date="http://localhost:8100/servlet/systemstart.DateHandler"/>
>
>  <xsl:output method="html"/>
>  <xsl:template match = "."><!-- -IN data.xml -XSL testdates.xsl -->
>
>   <xsl:apply-templates select = "person-name"/>
>
>   <xsl:apply-templates select = "person-address"/>
>  </xsl:template>
>
>  <xsl:template match = "person-name">
>   <xsl:variable name ="today" select = "Date:todaysDate()"
> xmlns:Date="http://localhost:8100/servlet/systemstart.DateHandler"/>
>   <xsl:value-of select = "concat('todays date is : ',$today)"/>
>
>   <xsl:value-of select = "."/>
>  </xsl:template>
>
>  <xsl:template match = "person-address">
>   <xsl:value-of select = "."/>
>  </xsl:template>
> </xsl:stylesheet>
>
> <xsl:stylesheet
>   version = "1.0"
>          xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>          <xsl:script language="java" implements-prefix="Date"
>          src="http://localhost:8100/servlet/systemstart.DateHandler"
>
> xmlns:Date="http://localhost:8100/servlet/systemstart.DateHandler"/>
>
>  <xsl:output method="html"/>
>  <xsl:template match = ".">
>   <xsl:apply-templates select = "person-name"/>
>
>   <xsl:apply-templates select = "person-address"/>
>  </xsl:template>
>
>  <xsl:template match = "person-name">
>   <xsl:variable name ="today" select = "Date:todaysDate()"
> xmlns:Date="http://localhost:8100/servlet/systemstart.DateHandler"/>
>   <xsl:value-of select = "concat('todays date is : ',$today)"/>
>
>   <xsl:value-of select = "."/>
>  </xsl:template>
>
>  <xsl:template match = "person-address">
>   <xsl:value-of select = "."/>
>  </xsl:template>
> </xsl:stylesheet>
>
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


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


Current Thread
  • Java method call error
    • Khalid Ali - Thu, 31 Jan 2002 00:16:54 -0500 (EST)
      • Michael Kay - Thu, 31 Jan 2002 04:31:53 -0500 (EST) <=
      • <Possible follow-ups>
      • Khalid - Thu, 31 Jan 2002 11:33:38 -0500 (EST)

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.