ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> exslt
exslt
[exslt] requires an Object instance as first argument
by Jim Chios other posts by this author
Apr 5 2002 6:14PM messages near this date
Re: [exslt] Insert child element - how? | Re: [exslt] requires an Object instance as first argument
I am getting this error...
does anyone know what i am missing here?
I am trying to create an exslt function.


Location of error unknown)XSLT Error (javax.xml.transform.TransformerException)
: javax.xml.transform.TransformerException: Instance method call to method myfun
c requires an Object instance as first argument

Code_________________________________________________________________

<?xml version="1.0"?> 
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:test="http://exslt.org/test"
                xmlns:func="http://exslt.org/functions"
                extension-element-prefixes="test func"> 



<xsl:template match="/"> 
<html> <body>
<h1> <xsl:value-of select="./message/text()"/></h1>
<h2> <xsl:value-of select="./message/text()"/></h2>
<xsl:value-of select="test:myfunc()"/> 
</body> </html>
</xsl:template> 

<func:function name="test:myfunc"> 
  
      <func:result select="2222"/> 
   
</func:function> 

</xsl:stylesheet> 


---------------------------------------------
RUN

C:\xsltstuff> java org.apache.xalan.xslt.Process -in data.xml -xsl yyy1.xsl
<html> 
<body> 
<h1> 20001201</h1>
<h2> 20001201</h2>
</body> 

(Location of error unknown)XSLT Error (javax.xml.transform.TransformerException)
: javax.xml.transform.TransformerException: Instance method call to method myfun
c requires an Object instance as first argument


__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenienc
e of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

_______________________________________________
exslt mailing list
list@[...].org
http://www.exslt.org/list
Thread:
Jim Chios
Jeni Tennison

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved