Message
The @seq attribute (@seq) must correspond to the position of the article in the issue ToC (if ($filenameReferences) then ('suggested value: ', $position) else ('There is no
reference to this article in the Issue file found'))
Rule XPath:
This rule ASSERTS the following, raising an alert if FALSE:
let $seq := @seq returnlet $IssueFile := local:issue-xml(., $IssueFileXml, $IssueFileUri) returnlet $issue-article-meta := ($IssueFile/issue-xml/toc//issue-article-meta)[$seq[. castable
as xs:integer]] returnlet $filenameReferences := ($IssueFile/issue-xml/toc//issue-article-meta)[self-uri/@xlink:href/contains(.,
$filename)] returnlet $position := $filenameReferences[1]/count(preceding::issue-article-meta) + 1 return($filenameReferences and @seq[. castable as xs:integer] = $position) or not(exists($IssueFile))