I noticed today using the 1.72.0 HTML stylesheets that meta keywords
are automatically
produced for keywordsets that are children of bookinfo (they show up in the
head section of the html). Keywordsets in other areas though (e.g,
chapterinfo, sectioninfo) don't show up in the ouput.

For example, this source:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd";>
<book>
    <title>Book Title</title>
    <bookinfo>
        <keywordset>
            <keyword>word1</keyword>
            <keyword>word2</keyword>
        </keywordset>
    </bookinfo>
    <chapter id="c1">
        <chapterinfo>
            <keywordset>
                <keyword>word3</keyword>
                <keyword>word4</keyword>
            </keywordset>
        </chapterinfo>
        <title>Chapter Title</title>
        <section id="s1">
            <sectioninfo>
                <keywordset>
                    <keyword>word5</keyword>
                    <keyword>word6</keyword>
                </keywordset>
            </sectioninfo>
            <title>Section Title</title>
            <para>
                Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
            </para>
        </section>
    </chapter>
</book>

produces the following output:

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
        <title>Book Title</title>
        <meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
        <meta name="keywords" content="word1, word2">
    </head>
    <body>
      ...
    </body>
</html>

instead of:

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
        <title>Book Title</title>
        <meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
        <meta name="keywords" content="word1, word2, word3, word4, word5,
word6">
    </head>
    <body>
      ...
    </body>
</html>


What customization would be needed to get the other keywords to show up in
the meta list as well?

Reply via email to