I'm trying to learn how to write my own taglibs for AxKit with the
TaglibHelper module, but I'm getting an error I can't figure out how to
solve.
In the code generated by AxKit when parsing my XSP script I get the
error in the topic of this mail: "Global symbol "%_args" requires
explicit package name". I can see why the error occurs in the perl code
(no my %_args declaration, obviously), but I'm at a aloss as to how I
can fix this error without going into the AxKit sources. The files being
parsed are as follows:

=== index.xsp ===
<?xml-stylesheet href="NULL" type="application/x-xsp"?>
<xsp:page xmlns:xsp="http://www.apache.org/1999/XSP/Core";
xmlns:util="http://apache.org/xsp/util/v1";
xmlns:test="http://riisholt.org/TaglibTest";>
        <html>
                <body>
<p>Hi! It's <util:time format="%H:%M:%S"/>.</p>
<p>Test: <test:mysub arg="test" />.</p>
                </body>
        </html>
</xsp:page>

=== TaglibTest.pm
package TaglibTest;

use warnings;
use strict;
use Apache::AxKit::Language::XSP::TaglibHelper;

our @ISA;
unshift @ISA, qw(Apache::AxKit::Language::XSP::TaglibHelper);
our $NS = "http://riisholt.org/TaglibTest";;
our @TAGLIB_EXPORT = (qw/mysub($arg)/);

sub mysub($)
{
        my $parms = "";
        while ( my ($a, $b) = each %_ )
        {
                $parms = "Hash: ";
                $parms .= "$a => $b ";
                $parms .= "Array: ";
                $parms .= join ', ', @_;
        }
        return $parms;
}

1;

Thanks in advance for any insight in this,
Arne
:wq


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

Reply via email to