-
Notifications
You must be signed in to change notification settings - Fork 17
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
Request for fn:matches #188
Comments
I would like to add that |
We indeed do not yet support I'll take a closer look at matches to see if we can get that in sometime soon. |
The main historical problem with matches, and xs:patterns in general were the differences between JS regexes and xs:pattern. Recently though, https://github.com/bwrrp/xspattern.js was released. Looking at the documentation of fn:matches, there is no replace yet, nor are there capture groups or backreferences (the point where XPath's xs:pattern deviates from the XSD xs:pattern), we should be able to implement it using that library. I can not promise it will be implemented soon, but I'll take a look on how we can implement it! fn:matches has been on my wishlist for a while too! |
I took some time to work on this, and I found the following:
We'll track progress right here in this issue! |
I have made a PR on xspattern.js which implements basic pattern support for However, before integrating everything, I would at least like to be able to recognize everything that we do not yet support, and throw appropriate errors. For example, using backreferences in |
I made another PR on xspattern.js that covers the additional functionality: bwrrp/xspattern.js#13 If that one is done, expect a release here! |
A small update, I ran into various issues while getting the xspattern library injected properly. Mainly in the demo page. I'm expecting to work on that next week |
Good news! we managed to make it work! I'll publish this all this afternoon! Please get back to us if you have any feedback! |
FontoXPath 3.12.0 is a fact! Closing this issue |
Hi, thanks som much for your hard work!
Any possibility to share a "roadmap" for fn:matches function?
Please see wvbe/node-schematron#1 (comment) for use-case... :)
The text was updated successfully, but these errors were encountered: