Re: xs:hexBinary or base64binary (Was: Re: Comments on binary specification)

> So what are the options?
>
> (a) declare the argument as xs:anyAtomicType
> (b) accept only one of the binary types, and require the user to convert
> explicitly when necessary

We use a combination of these first two options in our own binary
functions: we allow both hex and base64 binary items, declare them as
xs:anyAtomicType, and raise FORG0001 [1] whenever the passed on
argument has a type different than binary.

[1] http://www.w3.org/TR/xpath-functions/#ERRFORG0001

Received on Friday, 15 March 2013 11:36:26 UTC