On 4.7.2013 14:54, Florent Georges wrote:
> Yes, it would be preference as well if we go that way (using
> xs:anyAtomicType in the signature of the functions in the API).
>
> 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.
Jirka
--
------------------------------------------------------------------
Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz
------------------------------------------------------------------
Professional XML consulting and training services
DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 rep.
------------------------------------------------------------------
Bringing you XML Prague conference http://xmlprague.cz
------------------------------------------------------------------