Am Thursday, 05. June 2003 23:33, schrieb Matt Sergeant:
> On Thu, 5 Jun 2003, Scott Turner wrote:
> > I just started using AxKit this week and I've been trying to develop a
> > tag library that performs a simple MySQL DB query and returns the output
> > in XML.  Whenever I try to run the XSP page which accesses the taglib, I
> > get the following error:
> >
> > [Error] Can't locate object method "register" via package
> > "EEIT::PeopleTaglib" at
> > /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Apache/AxKit/Lang
> > uage/XSP.pm line 203.
> >
> > Here's the code for the taglib itself (EEIT::PeopleTaglib):
>
> Does the module compile?
>
> Also you seem to be mixing metaphors - the sub attribute stuff is from
> SimpleTaglib, and the @EXPORT_TAGLIB is from TaglibHelper.

It looks more like a misunderstanding:

Scott put the "as_xml=1" stuff into @EXPORT_TAGLIB and (I guess) thought that 
the sub definition must look the same.
Scott, make a plain sub declaration, just "sub record {", that's all you need.

-- 
CU
   Joerg

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

Reply via email to