- Fix the cases when the specified column number does not match the real one
- Add a constraint for this
This commit is contained in:
parent
a0158d2a4d
commit
e819151e45
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=42142
22 changed files with 33 additions and 16 deletions
|
@ -60,10 +60,13 @@
|
|||
</rule>
|
||||
</pattern>
|
||||
|
||||
<pattern name="Check table entries">
|
||||
<pattern name="Check tables">
|
||||
<rule context="//entry">
|
||||
<report test="@colname and @spanname">You cannot use both colname and spanname attributes on table entries.</report>
|
||||
</rule>
|
||||
<rule context="//tgroup">
|
||||
<report test="@cols != count((thead/row|tbody/row)[1]//entry)">The number of columns does not match the specified value (in section <xsl:value-of select="(ancestor::sect5[last()]|ancestor::sect4[last()]|ancestor::sect3[last()]|ancestor::sect2[last()]|ancestor::sect1[last()]|ancestor::chapter[last()])[last()]/@id"/>).</report>
|
||||
</rule>
|
||||
</pattern>
|
||||
|
||||
<!--
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue