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

Make the argument type of several extension functions xs:QName #687

Closed
ndw opened this Issue Jan 3, 2019 · 2 comments

Comments

Projects
None yet
2 participants
@ndw
Contributor

ndw commented Jan 3, 2019

Several extension functions (p:system-property, p:step-available, ...) take a string as an argument and then have special rules about how it's transformed into a QName.

I propose that we make the arguments into xs:QNames and assert that the standard QName magic applies.

That'll work, right?

@xml-project

This comment has been minimized.

Contributor

xml-project commented Jan 3, 2019

Nope, because the rules we have so far are for variables/options with type xs:QName not for parameters. So we have we would have to add some more magic.
I would not resist this in general, but I think we should think about the consequences for XPath functions (standard and user-defined) in general. Treating "our" functions different from the other one seems odd, doesn't it.

@ndw

This comment has been minimized.

Contributor

ndw commented Jan 3, 2019

Oh, indeed.

@ndw ndw closed this Jan 3, 2019

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