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

Mike Beckerle mbeckerle.dfdl at gmail.com
Tue Nov 20 12:32:20 EST 2018


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
<http://www.ogf.org/About/abt_policies.php>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ogf.org/pipermail/dfdl-wg/attachments/20181120/14149194/attachment.html>


More information about the dfdl-wg mailing list