Re: Comment on "Allow both xs:base64Binary and xs:hexBinary as arguments"

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