add data-id attr for embedded resources