-
-
Notifications
You must be signed in to change notification settings - Fork 182
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
[BUG] few functions not according to spec #3594
Comments
@dizzzz I left some notes about this in #1929. Most notably:
But the fixes to (By the way, I think your results might be flipped: what you say is the spec appears to be eXist's current behavior, and vice versa. For example, the specs say that |
@dizzzz Your observations about the signatures of |
This code xquery version "3.1";
fn:json-to-xml(fn:serialize(fn:json-doc(file:///Users/lcahland/Desktop/foo.json, map {
"liberal": fn:true(),
"escape": fn:true()
}), map {
"method": "json"
}), map {
"liberal": fn:true(),
"escape": fn:true()
}) with the JSON document: {
"operandRight": {
"type": "literal",
"dataType": "code",
"value": "\u0000"
}
} returns the following from Saxon <?xml version="1.0" encoding="UTF-8"?>
<map xmlns=http://www.w3.org/2005/xpath-functions>
<map key="operandRight">
<string key="dataType">code</string>
<string key="value" escaped="true">\\u0000</string>
<string key="type">literal</string>
</map>
</map> And this from eXist-db 6.0.1. The value in <fn:map xmlns:fn=http://www.w3.org/2005/xpath-functions>
<fn:map key="operandRight">
<fn:string key="type">literal</fn:string>
<fn:string key="dataType">code</fn:string>
<fn:string key="value"></fn:string>
</fn:map>
</fn:map> |
@lcahlander The issue valid but does not have to do with cardinalities. I would suggest to open a separate issue for your finding and rename this issue to mention built-in function cardinality explicitly. |
I compared the cardinality of all (w3c defined) functions in eXist-db with the spec; I found a few differences:
Can these be fixed in 5.x or are these typically 6.x items?
The text was updated successfully, but these errors were encountered: