diff options
-rw-r--r-- | share/xml/freebsd.sch | 9 |
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> |