- Avoid footnotes in tables; it looks strange and is problematic for

some tools. (Either removed if the affected text has been removed
  from the English version or moved into parentheses.)
- Add constaints to avoid programlisting, screen and footnote in tables.
This commit is contained in:
Gabor Kovesdan 2013-07-06 14:05:02 +00:00
parent ce79a25929
commit 0dcb7a2f33
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=42174
7 changed files with 19 additions and 43 deletions

View file

@ -67,6 +67,11 @@
<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>
<rule context="//table">
<report test=".//programlisting">Programlisting is not allowed in tables (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>
<report test=".//screen">The screen element is not allowed in tables (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>
<report test=".//footnote">Footnote is not allowed in tables (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>
<!--