[DFDL-WG] Spec erratum in tables 18 and 20
Steve Hanson
smh at uk.ibm.com
Thu Jan 8 12:41:50 EST 2015
Correction to tables below - only xs:dateTime can have binaryCalendarRep
'binarySeconds' or 'binaryMilliseconds'.
Type
Length
text
binary
String
The XSD maxlength facet gives length in characters, but this is also the
length in bytes. (See note below: character set encoding must be
single-byte.) Multply by 8 to get number of bits.
Not applicable
Float
Not allowed
32 bits
Double
Not allowed
64 bits
Decimal, Integer, nonNegativeInteger
Not allowed
packed decimal: Not allowed
binary: Not allowed
Long, UnsignedLong
Not allowed
binary: 64 bits
Int, UnsignedInt
Not allowed
binary: 32 bits
Short, UnsignedShort
Not allowed
binary: 16 bits
Byte, UnsignedByte
Not allowed
binary: 8 bits
DateTime
Not allowed
binarySeconds: 32 bits, binaryMilliseconds: 64 bits.
Date
Not allowed
binarySeconds, binaryMilliseconds: Not applicable
Time
Not allowed
binarySeconds, binaryMilliseconds: Not applicable
Boolean
Length of longest of dfdl:textBooleanTrueRep and dfdl:textBooleanFalseRep
values
32 bits
HexBinary
Not applicable
The XSD maxLength facet gives the length in bytes. Multiply by 8 to
convert to number of bits.
Table 18 Length in Bits for SimpleTypes when dfdl:lengthKind is 'implicit'
Type
Length
String
Not applicable
Float
32
Double
64
Decimal, Integer, NonNegativeInteger
Compute the minimum number of bytes to represent the value (per
dfdl:binaryNumberRep) and sign (if applicable). Multiply by 8 for number
of bits.
Long, UnsignedLong
packed decimal: as Decimal
binary: 64
Int, UnsignedInt
binary: 32
Short, UnsignedShort
binary: 16
Byte, UnsignedByte
binary: 8
DateTime
binarySeconds: 32, binaryMilliseconds:64
Date
binarySeconds, binaryMilliseconds: Not applicable
Time
binarySeconds, binaryMilliseconds: Not applicable
Boolean
32
HexBinary
Compute the number of bytes in the infoset value padded to the value of
the XSD minLength facet (which gives minimum length in bytes) using
dfdl:fillByte if necessary. This gives the unparse length in bytes.
Multiply by 8 for the number of bits.
Table 20 Unparse Lengths (in Bits) for Binary Data with dfdl:lengthKind
'prefixed'
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
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/20150108/bceee70c/attachment.html>
More information about the dfdl-wg
mailing list