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 if namespace axis is matched in p:delete #53

Closed
xml-project opened this Issue Mar 18, 2019 · 5 comments

Comments

Projects
None yet
3 participants
@xml-project
Copy link
Contributor

xml-project commented Mar 18, 2019

In p:delete we currently say:

It is a dynamic error (err:XC0062) if the match option matches a namespace node. Also, note that deleting an attribute named xml:base does not change the base URI of the element on which it occurred.

Since we use XPath 3.1 and there is no support for the namespace axis anymore, I think this error is obsolete now.

Did I miss something?

@eriksiegel

This comment has been minimized.

Copy link
Contributor

eriksiegel commented Mar 18, 2019

I think you're right

@ndw

This comment has been minimized.

Copy link
Collaborator

ndw commented Mar 18, 2019

I'm not sure. The namespace axis is still present in 3.1, it's just deprecated. I think Saxon still supports it, but I haven't tried recently.

@xml-project

This comment has been minimized.

Copy link
Contributor Author

xml-project commented Mar 18, 2019

Thanks norm. I will check the XPath 3.1 specs and the Saxon documentation for this.

@ndw

This comment has been minimized.

Copy link
Collaborator

ndw commented Mar 18, 2019

From the XPath 3.1 specification:

Note:

The namespace axis is deprecated as of XPath 2.0, but required in some languages that use XPath, including XSLT.

@xml-project

This comment has been minimized.

Copy link
Contributor Author

xml-project commented Mar 18, 2019

Found this passage too. So we have to keep the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.