- Add constraint for misplaced indexterms in listitems
- Make the constraints write out the primary indexterms so that they can be found better
This commit is contained in:
parent
94fb4ea396
commit
5633c0cd23
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=42420
1 changed files with 4 additions and 5 deletions
|
@ -75,11 +75,10 @@
|
|||
</pattern>
|
||||
|
||||
<pattern name="Check indexes">
|
||||
<rule context="//question">
|
||||
<report test="./indexterm">Indexterm is not allowed directly in question, place it into a concrete paragraph (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="//answer">
|
||||
<report test="./indexterm">Indexterm is not allowed directly in answer, place it into a concrete paragraph (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 context="//indexterm">
|
||||
<report test="../question">Indexterm (<xsl:value-of select="./primary"/>) is not allowed directly in question, place it into a concrete paragraph (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="../answer">Indexterm (<xsl:value-of select="./primary"/>) is not allowed directly in answer, place it into a concrete paragraph (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="../listitem">Indexterm (<xsl:value-of select="./primary"/>) is not allowed directly in listitem, place it into a concrete paragraph (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…
Reference in a new issue