- From: Florent Georges <fgeorges@fgeorges.org>
- Date: Thu, 4 Jul 2013 15:11:12 +0200
- To: Jirka Kosek <jirka@kosek.cz>
- Cc: Michael Kay <mike@saxonica.com>, Christian Grün <christian.gruen@gmail.com>, EXPath CG <public-expath@w3.org>
On 4 July 2013 15:06, Jirka Kosek wrote: > On 4.7.2013 14:54, Florent Georges wrote: >> So in that case, the return type has to be xs:anyAtomicType as well, >> to be able to return the same type as received as parameter. > No, return value for binary values has to be either base64Binary or > hexBinary, otherwise it will raise dynamic error when passed as binary > argument to another function. Well, yeah, the dynamic type of an actual item, returned by such a function, will be either of them. But the static return type, the type that appears in the function signature, should be xs:anyAtomicType (for the same reason the static type of the parameters has to be xs:anyAtomicType), isn't it? -- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/
Received on Thursday, 4 July 2013 13:12:01 UTC