-
Hi, you have the following rule/assert on RequestedPublicationDate (BT-738) <assert id="BR-BT-00738-0053" role="ERROR" diagnostics="BT-738-notice"
test="( (boolean(
for $T in (current-date())
return ($T + xs:dayTimeDuration(cbc:RequestedPublicationDate/xs:date(text()) - cbc:IssueDate/xs:date(text())) < $T + xs:dayTimeDuration('P60D'))))
and (boolean(
for $T in (current-date())
return ($T + xs:dayTimeDuration(cbc:RequestedPublicationDate/xs:date(text()) - cbc:IssueDate/xs:date(text())) >= $T + xs:dayTimeDuration('P2D')))))
or not(cbc:RequestedPublicationDate)">rule|text|BR-BT-00738-0053</assert> With the following error message
We have several issues with this:
Here is how Germany will most probably validate at national level: <rule context="$ROOT-NODE/cbc:RequestedPublicationDate">
<let name="DISPATCH-DATE-NODE" value="../cbc:IssueDate" />
<assert test="$DISPATCH-DATE-NODE castable as xs:date" id="SR-BT-738-2">[SR-BT-738-2] ../cbc:IssueDate=<value-of select="../cbc:IssueDate"/> is not a valid calendar date.</assert>
<assert id="SR-BT-738-1" test=" xs:date(.) ge xs:date($DISPATCH-DATE-NODE)" role="error">[SR-DE-26] Calendar date of <name />=<value-of select="." /> must be greater or equals that of cbc:IssueDate=<value-of select="$DISPATCH-DATE-NODE" /></assert>
<!-- This rule is replacement of BR-BT-00738-0053 to keep compatibility with TED -->
<assert id="SR-BT-738-P60D" test="xs:date(.) - xs:date($DISPATCH-DATE-NODE) le xs:dayTimeDuration('P60D')">[SR-BT-738-P60D](<name/>) must not be more than 60 days after IssueDate due to TED requirements. <value-of select="concat('Current IssueDate=',xs:date($DISPATCH-DATE-NODE),' and RequestedPublicationDate=', xs:date(.), ' have a difference of ' , days-from-duration( xs:date(.) - xs:date($DISPATCH-DATE-NODE)), ' days.')"/></assert>
<!-- this should only be tested during sending and reception but not for e.g. archived notices, hence an own schematron phase -->
<assert id="current-date-test" test="xs:date($DISPATCH-DATE-NODE) le current-date() and current-date() le xs:date(.)">too old</assert>
</rule> |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, |
Beta Was this translation helpful? Give feedback.
Hi,
For these business related questions, please contact directly the helpdesk: [email protected]