[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook] automated keywords and chunking
[moving this over to docbook-apps mailing list where stylesheet issues are discussed] By keywords I presume you mean generating <meta name="keywords"> in the HEAD element of each chunks? If so, then you don't have to mess with the chunking machinery, you can use the placeholder template named 'user.head.content' that is available for inserting custom content. See: http://www.sagehill.net/docbookxsl/HtmlHead.html That template is called with the node being chunked as the context node, so you should be able to select descendant::indexterm/primary elements and process them into the value of the meta element. Bob Stayton Sagehill Enterprises bobs@sagehill.net ----- Original Message ----- From: "Tim Arnold" <a_jtim@bellsouth.net> To: <docbook@lists.oasis-open.org> Sent: Tuesday, September 22, 2009 4:35 PM Subject: [docbook] automated keywords and chunking > Hi, > I'm using DocBook 5 and the html chunking stylesheets. I'd like to > automatically create keywords for each output file that consist of the > primary index terms in that file. I can manage that in postprocessing > using Python and lxml, but I wanted to ask here to see if this has been > done before. It seems like something people might like to do, but after > looking at the chunking code and reading about it, it sounds like it > might be pretty complicated to implement. > > Any ideas on this? > thanks, > --Tim Arnold > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: docbook-help@lists.oasis-open.org > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]