- From: Christian Grün <christian.gruen@gmail.com>
- Date: Fri, 15 Mar 2013 12:35:26 +0100
- 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