While investigating XPathScript.pm looking for why my encoded strings
are failing to show up correctly, I found a minor bug in XPathScript.pm.
It's ignoring the return value when DO_SELF_ONLY is returned from the
handler, because the regexp to match non-numbers also happen to match
DO_SELF_ONLY (-1).
I could have changed the if-else structure, but opted for a minimal change:
Index: lib/Apache/AxKit/Language/XPathScript.pm
===================================================================
RCS file:
/home/cvspublic/xml-axkit/lib/Apache/AxKit/Language/XPathScript.pm,v
retrieving revision 1.6
diff -u -r1.6 XPathScript.pm
--- lib/Apache/AxKit/Language/XPathScript.pm 26 May 2002 16:36:32 -0000 1.6
+++ lib/Apache/AxKit/Language/XPathScript.pm 31 May 2002 17:48:35 -0000
@@ -640,7 +640,7 @@
# warn "Here with $result\n";
- if ($result =~ /\D/) {
+ if ($result !~ /-?\d+/) {
$dokids = 0;
$search = $result;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]