[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
[email protected]
----- Original Message -----
From: "Tim Arnold" <[email protected]>
To: <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]