It would perhaps be better here to move the <article> into the item template and there assign the ID to this element.