- From: Christian Grün <cg@basex.org>
- Date: Tue, 1 Dec 2020 16:19:35 +0100
- To: Joel Kalvesmaki <kalvesmaki@gmail.com>
- Cc: public-xslt-40@w3.org
Hi Joel, Maybe the Binary Module can help you with that [1]? It provides numerous other operations for handling bits and byte streams. Cheers, Christian [1] http://expath.org/spec/binary ____________________________________ On Tue, Dec 1, 2020 at 4:14 PM Joel Kalvesmaki <kalvesmaki@gmail.com> wrote: > > This is the third and probably most hairbrained suggestion I'll post today. Apologies in advance for idiocy. > > In writing XSLT functions to create hash values and to parse binary input, I have needed to write bit-type functions, e.g., bit:rotate(). I have done so on the basis of parameters tied to xs:boolean(). This feels to me like a hack, and I feel like I should be using a simpler data type with a smaller footprint. > > Datatypes aside, would there be an advantage in introducing in XPath 4.0 a set of standard, common bit-type functions? (Understanding, of course, that there would need to be variations that treat variations in big- and little-endianness.) > > Best wishes, > > jk > -- > Joel Kalvesmaki > kalvesmaki.com
Received on Tuesday, 1 December 2020 15:20:00 UTC