- From: <bugzilla@wiggum.w3.org>
- Date: Wed, 13 Sep 2006 15:37:25 +0000
- To: public-qt-comments@w3.org
- CC:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=3718
------- Comment #2 from tim@cbcl.co.uk 2006-09-13 15:37 -------
Fair point. The reason we came across this was because under the Formal
Semantics normalization for function calls, we get:
fn:index-of($seqParam as xs:anyAtomicType*, $srchParam as xs:anyAtomicType)
fn:index-of(
fs:convert-simple-operand(
fs:data($seqParam as xs:anyAtomicType*),
PrototypicalValue(xs:anyAtomicType))
fs:convert-simple-operand(
fs:data($srchParam as xs:anyAtomicType*)),
PrototypicalValue(xs:anyAtomicType)))
I haven't found a definition for the PrototypicalValue for xs:anyAtomicType.
(The spec does define it as an xs:double for numeric arguments).
Our resolution has been to choose the PrototypicalValue based on whether we are
dealing with avg, min, max, sum (treat as xs:double) or index-of,
distinct-values (treat as xs:string).
Received on Wednesday, 13 September 2006 15:37:27 UTC