[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: DOCBOOK: Create meta tags
On Mon, Feb 03, 2003 at 04:36:40PM +0100, Xyvind Heggen wrote: > I've been searching the list but can't seem to find any real info on > this. > > How do one set meta tags with docbook ? > > I want the html file to contain : > > <meta name="description" content="blablablabla"> > > <meta name="keywords" content="bla,bla,bla,bla,etc"> For these two meta names, there is some direct support in Docbook XSL. For "description", if you put your description in the document's <abstract> element, and set the stylesheet parameter 'generate.meta.abstract' to 1, then the text of the abstract will appear as the 'content' value of the meta. For keywords, if you put a <keywordset> element with keywords in your document's *info element (bookinfo, chapterinfo, etc), then it will be output in a meta name="keywords" element in the HTML HEAD. If you want other meta elements, or you want to customize how the description meta is handled (passed as a parameter, for example), then you can customize the built-in placeholder template named 'user.head.content'. It is automatically called during the output of the HTML HEAD. -- Bob Stayton 400 Encinal Street Publications Architect Santa Cruz, CA 95060 Technical Publications voice: (831) 427-7796 The SCO Group fax: (831) 429-1887 email: bobs@sco.com ---------------------------------------------------------------- To subscribe or unsubscribe from this elist use the subscription manager: <http://lists.oasis-open.org/ob/adm.pl>
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC