aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Kovesdan <gabor@FreeBSD.org>2013-07-24 18:47:43 +0000
committerGabor Kovesdan <gabor@FreeBSD.org>2013-07-24 18:47:43 +0000
commit5633c0cd2325da942476d25c89172476468550c4 (patch)
treec1153bdb38bdb462c60335b26b34e2b3d3f7758e
parent94fb4ea39648fe8ccb1c614c58d9e85da0288ac1 (diff)
downloaddoc-5633c0cd2325da942476d25c89172476468550c4.tar.gz
doc-5633c0cd2325da942476d25c89172476468550c4.zip
- Add constraint for misplaced indexterms in listitems
- Make the constraints write out the primary indexterms so that they can be found better
Notes
Notes: svn path=/head/; revision=42420
-rw-r--r--share/xml/freebsd.sch9
1 files changed, 4 insertions, 5 deletions
diff --git a/share/xml/freebsd.sch b/share/xml/freebsd.sch
index 1b44e0217e..880ab2d03c 100644
--- a/share/xml/freebsd.sch
+++ b/share/xml/freebsd.sch
@@ -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>