[DFDL-WG] spec bug in dfdl:hexBinary function example

Steve Hanson smh at uk.ibm.com
Wed Oct 15 04:34:01 EDT 2014


Tracked by issue http://redmine.ogf.org/issues/232. 

See suggested change to the other '208' example.

Regards
 
Steve Hanson
Architect, IBM DFDL
Co-Chair, OGF DFDL Working Group
IBM SWG, Hursley, UK
smh at uk.ibm.com
tel:+44-1962-815848



From:   Mike Beckerle <mbeckerle.dfdl at gmail.com>
To:     "dfdl-wg at ogf.org" <dfdl-wg at ogf.org>
Date:   09/10/2014 18:46
Subject:        [DFDL-WG] spec bug in dfdl:hexBinary function example
Sent by:        dfdl-wg-bounces at ogf.org



In discussion of the dfdl:hexBinary function, it says literals are given 
the smallest signed type that will hold them.

This example is therefore incorrect:

• dfdl:hexBinary(208) is the hexBinary value "D0". EXB

Should be value 00D0 since 208 is beyond the range of a signed byte, so 
must be a signed short.


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/20141015/c3ca6c69/attachment.html>


More information about the dfdl-wg mailing list