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

Expose math functions in formulas #4508

Closed
ebruchez opened this issue Apr 20, 2020 · 2 comments
Closed

Expose math functions in formulas #4508

ebruchez opened this issue Apr 20, 2020 · 2 comments

Comments

@ebruchez
Copy link
Collaborator

If we add a namespace for the Saxon math functions, things work. But they should probably be available out of the box, or a similar set.

XPath 3.x has them standard in the math namespace.

+1 from evaluator

@ebruchez ebruchez self-assigned this Apr 20, 2020
@ebruchez ebruchez added this to To review in Orbeon Forms 2020.1 via automation Nov 5, 2020
@ebruchez ebruchez changed the title Document how to use math functions in formulas Expose math functions in formulas Nov 5, 2020
@ebruchez
Copy link
Collaborator Author

ebruchez commented Nov 5, 2020

We were going to just document, and we can still do that for older versions, but we can also add basic support out of the box, even before the full migration to Saxon 10.

  • expose in http://www.w3.org/2005/xpath-functions/math the following function: log, sin, cos, tan, asin, acos, atan, atan2, log, exp.
  • in Form Builder, scope xmlns:math on the root element if it is not present
  • on offline branch, only do this on JVM side
  • document

@ebruchez ebruchez moved this from To review to In progress in Orbeon Forms 2020.1 Nov 5, 2020
@ebruchez
Copy link
Collaborator Author

ebruchez commented Nov 23, 2020

Documented

Orbeon Forms 2020.1 automation moved this from In progress to Done Nov 23, 2020
ebruchez pushed a commit that referenced this issue Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

1 participant