On Fri, 2003-02-07 at 07:48, [EMAIL PROTECTED] wrote:
>   Hello,
> 
> Enclosed in this mail (882 lines - sorry if this is too big an
> attachment for the axkit-users list policy) is a draft version of a
> new XML::XPathScript implementation. I am seeking your validation on
> my work.
> 

The only thing I see that's missing is the handler for text() from
AxKit:

------

        my $translations = $Apache::AxKit::Language::XPathScript::trans;
        
        if ($node->isTextNode) {
            my $trans = $translations->{'text()'};
            if (!$trans) { return $node->toString; }
            if (my $code = $trans->{testcode}) {
                my $t = {};
                my $retval = $code->($node, $t);
                if ($retval && %$t) {
                    foreach my $tkey (keys %$t) {
                        $trans->{$tkey} = $t->{$tkey};
                    }
                }
            }
            return $trans->{pre} . $node->toString . $trans->{post};
        }


------

It'd be handy if there was one to transform comments as well.  When I'm
dumping LaTeX, I do a manual s/<!--(.+?)-->/% $1\n/g which is kind of
yukky.

Brian Wheeler
[EMAIL PROTECTED]





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

Reply via email to