← Prev in month ← Prev in thread

Re: [docbook] automated keywords and chunking

From
Bob Stayton <>
Date
2009-09-23T16:11:39+00:00
ID
009401ca3c68$7aeb8080$0a00a8c0@pazu
Thread
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



----- Original Message ----- 
From: "Tim Arnold" <>
To: <>
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: 
> For additional commands, e-mail: 
>
>
>
← Prev in month ← Prev in thread