JATS-0044-011

Rule Overview

Message

A row in a table should not have more columns than there are columns defined in the table. Row count(preceding-sibling::oasis:row) + 1 has $rowCols columns while the table defines ancestor::oasis:tgroup/@cols columns.

Rule XPath:

This rule ASSERTS the following, raising an alert if FALSE:

let $colsInRow := local:cols-in-entries(oasis:entry, ancestor::oasis:tgroup) returnlet $RowNo := local:row-no(.) returnlet $prevMoreRows := (: sum of columns used in prior rows that add to this row via morerows :) local:cols-in-entries( (preceding-sibling::oasis:row intersect key('rows-having-morerows', generate-id(ancestor::oasis:tgroup[1])) )/oasis:entry[@morerows][(local:row-no(..) + number(@morerows)) ge $RowNo] , ancestor::oasis:tgroup) returnlet $rowCols := $colsInRow + $prevMoreRows return$rowCols le number(ancestor::oasis:tgroup/@cols)

Contexts