Fixes @data-longdesc and @data-media-type.
Adds c:param support and refactors existing attribute assignment.