Element 'ram:GuidelineSpecifiedDocumentContextParameter' must occur exactly 1 times.
The rsm:ExchangedDocumentContext does not contain exactly one ram:GuidelineSpecifiedDocumentContextParameter. The element is either missing or occurs more than once.
The guideline parameter identifies the specification used in the document context. This rule requires exactly one such element.
ram:GuidelineSpecifiedDocumentContextParameter is missing from rsm:ExchangedDocumentContext or occurs more than once. You can adjust the context so that it occurs there exactly once.
- Locate the document’s
rsm:ExchangedDocumentContext. - Add a
ram:GuidelineSpecifiedDocumentContextParameterif it is missing, or remove any occurrences beyond the first. - Generate the invoice again and validate it once more.
<rsm:ExchangedDocumentContext/>
<rsm:ExchangedDocumentContext> <ram:GuidelineSpecifiedDocumentContextParameter/> </rsm:ExchangedDocumentContext>
Technical details
The XPath test counts ram:GuidelineSpecifiedDocumentContextParameter elements in the current rsm:ExchangedDocumentContext and passes only when there is exactly one.
The rule applies within the document’s rsm:ExchangedDocumentContext.
rule/@context)assert/@test)