Only one attachment may be identified as main image.
//cac:CatalogueLine/cac:Item
(count(cac:ItemSpecificationDocumentReference[cbc:DocumentTypeCode = 'main_image']) <= 1)