VRBL-INV-DE-PEPPOL-31

Basic Info

Rule The Seller Contact Electronic Mail must contains @ and dot after @.
Context /ubl:Invoice/cac:AccountingSupplierParty/cac:Party/cac:Contact/cbc:ElectronicMail
Pattern vrbl-invoice-de-peppol-3p0
Severity fatal

Implementation

contains(normalize-space(.), '@') 
and 
contains(substring-after(normalize-space(.), '@'), '.')
and
not(substring(normalize-space(.), 1, 1) = '.')