The dynamic a_ and a- attributes should be available wherever item-expressions are available. Until now <tml:foreach> did not support those attributes.
This has been changed now.
The following now is valid:
<tml:foreach item="$mc.products" a_id="7411">...</tml:foreach>
Controller:
Controller.prototype.products = function(id) {
// id now is transported to controller ...
}