[DFDL-WG] Action 292 - version 2 proposal for hexBinary with lengthUnits bits

Steve Hanson smh at uk.ibm.com
Thu Nov 29 10:19:00 EST 2018


Mike 

I'm a bit lost on this now.  The concept of applying lengthUnits='bits' to 
xs:hexBinary is straightforward. It just counts bits. Bit order or byte 
order is irrelevant, in the same way that it is irrelevant when counting 
bytes for a hex binary. The only thing to note is that the fillByte needs 
to be used to make up whole bytes.

I'm missing something here.

Regards
 
Steve Hanson
IBM Hybrid Integration, Hursley, UK
Architect, IBM DFDL
Co-Chair, OGF DFDL Working Group
smh at uk.ibm.com
tel:+44-1962-815848
mob:+44-7717-378890
Note: I work Tuesday to Friday 



From:   Mike Beckerle <mbeckerle.dfdl at gmail.com>
To:     DFDL-WG <dfdl-wg at ogf.org>
Date:   20/11/2018 17:33
Subject:        [DFDL-WG] Action 292 - version 2 proposal for hexBinary 
with    lengthUnits bits
Sent by:        "dfdl-wg" <dfdl-wg-bounces at ogf.org>



Users want a way to express an arbitrary unaligned string of bits, with 
the appearance in the infoset being hexadecimal, not base 10.

Right now the only way I can see to meet this requirement while retaining 
backward compatibility would be a new DFDL property.

So here's the new idea:

Property dfdl:hexBinaryRep with values 'bytes' or 'bits'. New property, so 
defaulting (with suppressible warning) to 'bytes' for backward 
compatibility in schemas not having the property.

When set to 'bits', then type xs:hexBinary would behave just like 
xs:nonNegativeInteger, and all properties relevant to that type would be 
applicable, and any use of XSD length facets on such elements would be an 
SDE.  The hexBinary string would be exactly same as if you took the 
numeric value for a nonNegativeInteger and instead of presenting it as 
base 10 digits, you use base 16 digits. 


Mike Beckerle | OGF DFDL Workgroup Co-Chair | Tresys Technology | 
www.tresys.com
Please note: Contributions to the DFDL Workgroup's email discussions are 
subject to the OGF Intellectual Property Policy
--
  dfdl-wg mailing list
  dfdl-wg at ogf.org
  
https://www.ogf.org/mailman/listinfo/dfdl-wg

Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ogf.org/pipermail/dfdl-wg/attachments/20181129/2ad96f02/attachment-0001.html>


More information about the dfdl-wg mailing list