This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
keywords
- To: docbook-apps at lists dot oasis-open dot org
- Subject: DOCBOOK-APPS: keywords
- From: Dave Pawson <daveP at dpawson dot freeserve dot co dot uk>
- Date: Tue, 22 Aug 2000 19:27:50 +0100
Using website.dtd
I have
<webpage navto="yes" id="N6280">
<config param="desc" value="Sorting and Grouping"/>
<config param="dir" value="xsl"/>
<config param="filename" value="N6280.html"/>
<head>
<title>Sorting and Grouping</title>
<summary>Sorting and Grouping</summary>
<keywords>Sorting, Grouping</keywords>
</head>
From keywords.xsl I see
<xsl:template match="keyword" mode="html.header">
<meta name="keyword" content="{.}"/>
</xsl:template>
I therefore expected to see
<meta name="keyword" content="Sorting, Grouping" />
instead I got
<link name="keywords" content="Sorting, Grouping">
The flow, as far as I can tell, goes something like
website.xsl
<xsl:apply-templates select="head" mode="head.mode"/>
Then (same file)
<xsl:template match="head" mode="head.mode">
<xsl:variable name="nodes" select="*"/>
<xsl:variable name="global"
select="/website/homepage/head/*[@class='global']"/>
<head>
<xsl:apply-templates select="$nodes"/>
One of the children of <head> is <keywords> hence it should call
keywords.xsl, which it appears to... but :-)
In file keywords.xsl (part of normal docbook), I find
<xsl:template match="keyword" mode="html.header">
<meta name="keyword" content="{.}"/>
</xsl:template>
I.e. the right match, but in html.header mode.
*if* I'm right (I rarely am when asking Norm :-)
then in website.xsl the call should be in the same mode?
Regards DaveP