Updated XPath parser to allow spaces around unary + and -.
authorFrederic Jolliton <frederic@jolliton.com>
Mon, 12 Sep 2005 08:03:55 +0000 (08:03 +0000)
committerFrederic Jolliton <frederic@jolliton.com>
Mon, 12 Sep 2005 08:03:55 +0000 (08:03 +0000)
git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-30

xpathparser.py

index b3a259f..9c79ed1 100644 (file)
@@ -542,7 +542,7 @@ def xpath() :
                else :
                        return e[ 1 ]
        unaryExpr = \
-               Sequence( Regex( '[-+]*' ) , valueExpr ).call( xpUnaryExpr )
+               Sequence( WithSpaceAround( Regex( '[-+]*' ) ) , valueExpr ).call( xpUnaryExpr )
 
        #
        # [15] IntersectExceptExpr