Hi. Currently in the <title> section of our html, we list the number
%n and title %t. We would like to pre-pend the name of the book to
the <title> information, so the google search results contain the name
of the book in the link.
For example, if the name of the book is "My Book", the search would
look similar to:
My Book: 4.6.1 Jack and Jill go home
I know about using local.l10n.xml to process generated text, but
haven't found a way to use a variable in the <l:template> section. I
would like to set the local.l10n.xml settings in a common xsl file
that each of the 10 books can use the same xsl.
Is there a way for a variable called $mybookname to be used in the
local.l10n.xml settings? The following code does not expand the
variable $mybookname:
<xsl:param name="local.l10n.xml" select="document('')"/>
<l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
<l:l10n language="en">
<l:context name="title-numbered">
<l:template name="sect1" text="$mybookname %n. %t"/>
</l:context>
</l:l10n>
</l:i18n>
Here is the example of our current html, for which I would like to add
the book name:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>4.6.1. Jack and Jill go home</title>
Thank you,
Jon
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]