xpath icon indicating copy to clipboard operation
xpath copied to clipboard

Error: (4,2) has an invalid token

Open pgundlach opened this issue 2 years ago • 1 comments

I assume that XPath 2.0 is not (fully) implemented (yet), so feel free to close this issue, as XPath 1 does not support this expression.

This program:

package main

import (
	"log"

	"github.com/antchfx/xpath"
)

func main() {
	_, err := xpath.Compile(`(4,2)`)
	if err != nil {
		log.Fatal(err)
	}
}

writes out (4,2) has an invalid token.

v1.2.0

I'd expect the valid sequence (4,2) to return no error.

pgundlach avatar Jul 20 '21 19:07 pgundlach

I marked this as new feature, but I'm not sure I have enough time to implement it.

zhengchun avatar Jul 21 '21 12:07 zhengchun