W3C home > Mailing lists > Public > public-expath@w3.org > March 2013

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

From: Christian Grün <christian.gruen@gmail.com>
Date: Fri, 15 Mar 2013 12:35:26 +0100
Message-ID: <CAP94bnPm0XLuvm5ra7w6G7htoPOXkjhRF-XkOrjj2aBsFAf1+Q@mail.gmail.com>
To: Michael Kay <mike@saxonica.com>
Cc: Florent Georges <fgeorges@fgeorges.org>, Jirka Kosek <jirka@kosek.cz>, EXPath <public-expath@w3.org>
> 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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:47:37 UTC