Element 'ram:Name' must occur exactly 1 times.
ram:Name is missing from SellerTradeParty or occurs more than once. It must occur exactly once.
The name identifies the seller in the invoice details. The rule requires one clearly structured name entry.
The seller details are missing a name or contain it more than once. Provide exactly one ram:Name element in SellerTradeParty.
- Find
SellerTradePartyin the seller details. - Check that it contains exactly one
ram:Nameelement. - Generate the invoice again and validate it once more.
<ram:SellerTradeParty/>
<ram:SellerTradeParty> <ram:Name>Example Seller</ram:Name> </ram:SellerTradeParty>
Technical details
The rule counts the direct ram:Name elements in SellerTradeParty and requires a count of 1.
The rule applies to SellerTradeParty in the seller details.
rule/@context)assert/@test)