http://javarevisited.blogspot.com/2013/03/convert-and-print-byte-array-to-hex-string-java-example-tutorial.html
http://javarevisited.blogspot.com/2013/03/convert-and-print-byte-array-to-hex-string-java-example-tutorial.html
If the argument is of some fixed-width type like Byte, Int, Short, Long or the unsigned thereof, then you get hex digits corresponding to 1, 2, 4, or 8 bytes of a binary twos-complement integer value of that type.
If the argument is of some fixed-width type like Byte, Int, Short, Long or the unsigned thereof, then you get hex digits corresponding to 1, 2, 4, or 8 bytes of a binary twos-complement integer value of that type. If the argument is anything else (including a literal number), then you get the smallest number of hex digit pairs that can represent the value. If you get xs:integer (aka BigInt/Java BigInteger), then I'd say - smallest number of digits that can represent the value.
So dfdl:hexBinary(208) is D0, dfdl:hexBinary(xs:integer(208)) is also D0 dfdl:hexBinary(xs:short(208)) is 00D0
http://travisdazell.blogspot.com/2012/11/converting-hex-string-to-byte-array-in.html
http://travisdazell.blogspot.com/2012/11/converting-hex-string-to-byte-array-in.html
default behavior is inherited and it displays a RecipeOp assuming there are no children to display.
The argument can also be a long, unsignedLong, or any subtype thereof, and in that case a xs:hexBinary value containing a number of hex digits is produced. The ordering and number of the digits correspond to a binary big-endian twos- complement implementation of the type of the argument. Digits 0-9, A-F are used. The number of digits produced depends on the type of $arg, being 2, 4, 8 or 16. If $arg is a literal number then the type is the smallest signed type (long, int, short, byte) that can contain the value. If a literal number is not able to be represented by a long, it is a schema definition error.
• dfdl:hexBinary(xs:short(208)) is the hexBinary value "00D0". • dfdl:hexBinary(208) is the hexBinary value "D0". • dfdl:hexBinary(-2084) is the hexBinary value "F7DC".