Skip to content

Commit

Permalink
Changed content for CII-SR-030; #54
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Jun 19, 2018
1 parent 25a5d31 commit a2a6ce1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cii/schematron/CII/EN16931-CII-syntax.sch
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<param name="CII-SR-026" value="not(ram:CategoryCode)"/>
<param name="CII-SR-027" value="not(ram:IncludedNote/ram:Subject)"/>
<param name="CII-SR-028" value="not(ram:IncludedNote/ram:ContentCode)"/>
<param name="CII-SR-030" value="count(ram:IncludedNote/ram:Content) &lt;= 1"/>
<param name="CII-SR-030" value="count(ram:Content) &lt;= 1"/>

<param name="CII-SR-032" value="not(ram:IncludedNote/ram:ID)"/>
<param name="CII-SR-033" value="not(ram:EffectiveSpecifiedPeriod)"/>
Expand Down Expand Up @@ -612,6 +612,7 @@
<param name="Document_Context " value="/rsm:CrossIndustryInvoice/rsm:ExchangedDocumentContext"/>
<param name="DocumentContextParameter " value="//*[ends-with(name(), 'DocumentContextParameter')]"/>
<param name="Exchanged_Document " value="/rsm:CrossIndustryInvoice/rsm:ExchangedDocument"/>
<param name="Exchanged_Document_Note " value="/rsm:CrossIndustryInvoice/rsm:ExchangedDocument/ram:IncludedNote"/>
<param name="IDType " value="//ram:*[ends-with(name(), 'ID')]"/>
<param name="IDTypeNoAttributes " value="/rsm:CrossIndustryInvoice/*[self::rsm:ExchangedDocumentContext/ram:GuidelineSpecifiedDocumentContextParameter/ram:ID or
self::rsm:ExchangedDocument/ram:ID or self::rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:AssociatedDocumentLineDocument/ram:LineID or
Expand Down
4 changes: 3 additions & 1 deletion cii/schematron/abstract/EN16931-CII-syntax.sch
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@
<assert test="$CII-SR-026" flag="warning" id="CII-SR-026">[CII-SR-026] - CategoryCode should not be present</assert>
<assert test="$CII-SR-027" flag="warning" id="CII-SR-027">[CII-SR-027] - Subject should not be present</assert>
<assert test="$CII-SR-028" flag="warning" id="CII-SR-028">[CII-SR-028] - ContentCode should not be present</assert>
<assert test="$CII-SR-030" flag="warning" id="CII-SR-030">[CII-SR-030] - Content should exist maximum once</assert>

<assert test="$CII-SR-032" flag="warning" id="CII-SR-032">[CII-SR-032] - ID should not be present</assert>
<assert test="$CII-SR-033" flag="warning" id="CII-SR-033">[CII-SR-033] - EffectiveSpecifiedPeriod should not be present</assert>
<assert test="$CII-SR-034" flag="warning" id="CII-SR-034">[CII-SR-034] - IssuerTradeParty should not be present</assert>
</rule>
<rule context="$Exchanged_Document_Note ">
<assert test="$CII-SR-030" flag="warning" id="CII-SR-030">[CII-SR-030] - Content should exist maximum once</assert>
</rule>
<rule context="$Invoice_line ">
<assert test="$CII-SR-035" flag="warning" id="CII-SR-035">[CII-SR-035] - DescriptionCode should not be present</assert>
<assert test="$CII-SR-036" flag="warning" id="CII-SR-036">[CII-SR-036] - ParentLineID should not be present</assert>
Expand Down

0 comments on commit a2a6ce1

Please sign in to comment.