Element 'ram:BusinessProcessSpecifiedDocumentContextParameter' may occur at maximum 1 times.
The rsm:ExchangedDocumentContext contains more than one ram:BusinessProcessSpecifiedDocumentContextParameter. This element may occur there at most once.
The business process parameter provides the associated process context. This rule limits the declaration to at most one element per document context.
ram:BusinessProcessSpecifiedDocumentContextParameter occurs more than once in rsm:ExchangedDocumentContext. You can adjust the context so that this element occurs there no more than once.
- Locate the document’s
rsm:ExchangedDocumentContext. - Check its
ram:BusinessProcessSpecifiedDocumentContextParameterelements and remove any occurrences beyond the first. - Generate the invoice again and validate it once more.
<rsm:ExchangedDocumentContext> <ram:BusinessProcessSpecifiedDocumentContextParameter/> <ram:BusinessProcessSpecifiedDocumentContextParameter/> </rsm:ExchangedDocumentContext>
<rsm:ExchangedDocumentContext> <ram:BusinessProcessSpecifiedDocumentContextParameter/> </rsm:ExchangedDocumentContext>
Technical details
The XPath test counts ram:BusinessProcessSpecifiedDocumentContextParameter elements in the current rsm:ExchangedDocumentContext and passes when there is at most one.
The rule applies within the document’s rsm:ExchangedDocumentContext.
rule/@context)assert/@test)