Skip to content

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

@pgundlach

Description

@pgundlach

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions