px:mediatype-detect: make more compact

Changed giant p:choose elements into p:add-attribute with the mappings
between extension/namespace and mediatype in an inline XML document.