...
When both dfdl:lookupRange and dfdl:lookupKey are specified, then the dfdl:lookupRange is used when parsing, the they are combined to create the aggregate set of values and ranges for parsing. When unparsing the first dfdl:lookupKey is used when unparsing. The When unparsing, if no dfdl:lookupKey value must fall within an inclusive interval defined by the lookup rangeis specified, then the lowest value of any specified dfdl:lookupRange is used.
Given these annotations, a DFDL processor can provide a logical string in the infoset, where the underlying representation is integer. Unparsing inverts the logical value back to a physical integer.
...