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

> 
> 
> 
> Declaring return type as anyAtomicType but requiring in prose text to be
> it base64Binary doesn't seem much useful. The difference is that for
> input parameters we want flexibility of accepting both binary types as
> we don't know what types stylesheet author needs to process.
> 
> For output (return) value we are fine with just one type as it can be
> accepted by any other function on input. I'm not sure whether I was able
> to explain it in a digestible form, though.
> 

I agree. It's better for the return type to be predictable than for the user to have to check to see what's been returned.

Michael Kay
Saxonica

Received on Thursday, 4 July 2013 13:29:42 UTC