When an enum type's attrs table references an enum, the resulting Lua tables holds the value of the enum and not the key. We'll have to do some broader changes to the structure of the xml.rb parser, since this relies on access to an element outside of the direct hierarchy of the one that is being parsed right now. Might be tricky!