fontoxpath
fontoxpath copied to clipboard
A minimalistic XPath 3.1 implementation in pure JavaScript
Bumps [@types/node-static](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node-static) from 0.7.8 to 0.7.11. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 9.0.0 to 9.1.0. Changelog Sourced from eslint-config-prettier's changelog. Version 9.1.0 (2023-12-02) Added: [unicorn/template-indent], (as a [special rule][unicorn/template-indent-special]). Thanks to Gürgün Dayıoğlu (@gurgunday)! Changed: All the [formatting rules...
Bumps [karma](https://github.com/karma-runner/karma) from 6.4.2 to 6.4.4. Release notes Sourced from karma's releases. v6.4.4 6.4.4 (2024-07-29) v6.4.3 6.4.3 (2024-02-24) Bug Fixes add build commits for patch release (d7f2d69) Changelog Sourced from...
Without that, the namespace part is never picked up Fixes #679
https://xpath.playground.fontoxml.com/?state=H4sIAAlelGgAAzWMQQrCMBBFrxJmU4VCcRtr7%2BDezZh%2BoZBMJIkyUnp3R6G7%2F9%2BDt1LKM8ifenpzWfgeUcnTulFPmqLNUd0w%2Fd71hfIxMCNELnDCCfXJAU4vnXbnm4zqETFMbpHaWMzkhzOSIO3wd0cLhSwN2vYcbV8pxdibhAAAAA%3D%3D ```xquery declare namespace x='x'; instance of element(x:ele) ``` Expected: true Actual: false Interestingly enough, this works like a charm in type switches: https://xpath.playground.fontoxml.com/?state=H4sIAFhelGgAAz2OzQqCQBSFX%2BUyBFMQRFtTdz1AqzazmcZTCeNVxmtdEd89i2p3fr7FN5mmrWCy%2FdY8fKr9JaI3mZlmszXaxCXmSrvy3U4D0rgMFUL0CcS%2BQd%2F5ANLCqj04jhBaKWUF5ZohYlc6dpwgQ2KSsUP%2FrCXc1yvdkOPge9BCNWBZf%2FgNfVl71A5BUFnHFa5%2BiPK%2Fzqnlm12EQssClZ%2BWmV8%2FMl4VzAAAAA%3D%3D ```xquery declare namespace x='x'; let $x...
This request fixes the missing possibility to add and subtract DateTimeDuration. `xs:dateTime("1970-01-01T00:00:00Z") + xs:dayTimeDuration("P15DT11H59M59S")`
I am surprised by the result of the query `array { //tip } => array:sort()` in the [playground](https://xpath.playground.fontoxml.com/?state=H4sIACnGeWcAA21RwWrDMAz9FeFLNyjNziUL7N7BNjboYBc3URoz2wqyUhJK%2F31ystLDBgY%2F209PT35nE6hBs31Ym5NlZw8ek9ma88WszRi8wlK36isClOLEYzX2VrpN7%2B10ZBpis2kpCilpU1Moi4U089MQguWpeu9cAl0WPFqOLh5BiDy0xLB%2F3q1h%2F6KSYGMD%2B9cBedqUxbX2t3GfZrRgcM3jChsnq%2BqTBqhthHwCPGmtdFmfIkiH2q%2BVbKn%2FUz3a0OuoNwVb15gSBGKE6yu0TEFtB4wDuEVSqAd2x%2B5%2F3R45WO%2Fi96p6iqR8hsMgsthRZY%2BSYNKWqbN6VMQgmASGlG2rj4%2B33U15Rnn0ssgp5EzmD9JYLLOd4AxFpsAFHiuYr7aJWO7ulVprLjjKtcBcfgCrOHTJ7AEAAA%3D%3D): ``` Array with 3 items:You can edit everything on the leftYou can...
The native HTML DOM has the quirky behavior of upper-casing the `nodeName` property of any element in the HTML namespace. Unfortunately, by default FontoXPath uses the `nodeName` in order to...
Consider the following test case: ```xpath let $fn := function($trigger as xs:boolean, $arg as array(*)) { if ($trigger) then ($arg[1]) else () } return $fn(true(), ()) ``` This should (and...
The [ISO 8601 standard](https://en.wikipedia.org/wiki/ISO_8601#Durations) allows to use Weeks but not combining them with other units. The current implementation of the new browser Date API [Temporal](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/Duration) allows weeks to be combined...