You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by sl...@apache.org on 2025/10/17 12:46:04 UTC
(daffodil-site) branch daffodil-2574-xpath-limitation created (now 2ab236c)
This is an automated email from the ASF dual-hosted git repository.
slawrence pushed a change to branch daffodil-2574-xpath-limitation
in repository https://gitbox.apache.org/repos/asf/daffodil-site.git
at 2ab236c Add documentation for or deviation from XPath numeric operations
This branch includes the following new commits:
new 2ab236c Add documentation for or deviation from XPath numeric operations
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(daffodil-site) 01/01: Add documentation for or deviation from XPath numeric operations
Posted by sl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
slawrence pushed a commit to branch daffodil-2574-xpath-limitation
in repository https://gitbox.apache.org/repos/asf/daffodil-site.git
commit 2ab236c210c618be584bfbe41832c8d0f25bf977
Author: Steve Lawrence <sl...@apache.org>
AuthorDate: Fri Oct 17 08:45:18 2025 -0400
Add documentation for or deviation from XPath numeric operations
---
site/unsupported.md | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/site/unsupported.md b/site/unsupported.md
index 2b3a9dc..64db8e0 100644
--- a/site/unsupported.md
+++ b/site/unsupported.md
@@ -71,6 +71,20 @@ that there has been no intention to support as of this release.
* dfdl:encoding using CCSIDs {% jira 2000 %}
* dfdl:useNilForDefault {% jira 1412 %}
+#### XPath Features
+
+* Arbitrary precision for numeric operations (+, -, *, div, idiv, mod) is only
+ used in specific cases. This can potentially lead to loss of precision or
+ overflow/underflow. The rules for promoting operands are as follows:
+ * If both operands are xs:long, xs:unsignedInt, or a subtype, both operands
+ are promoted to xs:long
+ * If one operand is xs:float or xs:double and the other is xs:float,
+ xs:double, xs:long, xs:unsignedLong, or a subtype, the operands are
+ promoted to xs:double
+ * If one operand is xs:integer or xs:nonNegativeInteger, and the other is
+ xs:integer or a subtype, both operands are promoted to xs:integer.
+ * Otherwise, both operands are promoted to xs:decimal
+
The above listings are derived from
this [DFDL Language New Features JIRA Report
](https://s.apache.org/daffodil-unimplemented-dfdl-language-features).