Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: (4,2) has an invalid token #67

Open
pgundlach opened this issue Jul 20, 2021 · 1 comment
Open

Error: (4,2) has an invalid token #67

pgundlach opened this issue Jul 20, 2021 · 1 comment

Comments

@pgundlach
Copy link

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.

@zhengchun
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants