{'fraction_non_alphanumeric': 0.013940520446096654, 'fraction_numerical': 0.0037174721189591076, 'mean_word_length': 4.983333333333333, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Aspectual Code Generators for Easy Generation of FIXML to OO Mappings

This paper provides a solution to the TTC 2014 FIXML study case. The case requires the implementation of a relatively straightforward mapping from XML messages in the FIXML format to a set of source files implementing the schema of such a message and, optionally, an instantiation with the data from the message. There is a requirement for producing code in a range of programming languages. The biggest challenge for transformation design in this study case is the fact that the same tag may occur in multiple places in the FIXML message, but with a different set of attributes. The generator is required to merge all of these occurrences into a single representation in the generated code. We demonstrate how the use of symmetric, language-aware code generators relieves the transformation developer almost entirely from any consideration for this requirement. As a result, the transformation specifications we have written are extremely straightforward and simple. We present generation to Java and C#.