I'm wondering if maybe "normalization" is the wrong approach, because it causes some issues with certain XML attributes, like SVG camelCased attributes, or namespaced attributes.

It might be better to just say "if it starts with data-, let us access it without the data- prefix", so to speak.