Jinntec / Fore

Fore - declarative user interfaces in plain HTML
MIT License
82 stars 11 forks source link

true() in XPath predicates #151

Closed JoernT closed 2 years ago

JoernT commented 2 years ago

Discussed in https://github.com/Jinntec/Fore/discussions/150

Originally posted by **timathom** June 27, 2022 I am able to use the `true()` function in MIP XPath expressions, but it doesn't seem to work in control `@ref` predicates. The example below throws an error when I try to use `true()` in a predicate ([log output](https://github.com/Jinntec/Fore/files/8993422/localhost-1656344737234.log)). ``` fontoxpath.esm.js:278 Uncaught (in promise) Error: XPST0017: Function Q{http://www.w3.org/2002/xforms}true with arity of 0 not registered. Did you mean "Q{http://www.w3.org/2005/xpath-functions}true ()"? ``` ``` This is true. This is false. ```
JoernT commented 2 years ago

Workaround:

using the 'fn:' prefix with xpath functions makes it work.