OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [docbook] Adding an ID attribute to HTML sect1 output



Hi all, 

I'm using the generate.id.attributes stylesheet parameter to include ID
attributes in my output HTML. So, a DocBook chapter element becomes <div
id="chapter_iD_xyz" class="chapter" lang="en"> in the resulting HTML. The
problem is that this feature only works for chapter, part and other
top-level elements. I'm chunking my HTML at sect1 level and want sect1 IDs
to appear in the HTML output (for the purposes of a commenting application).
Currently my sect1 appear as <div class="sect1" lang="en"> in the HTML with
no ID. 

Is there a way to customize the sect1 template to force it to add IDs to the
HTML output so that they appear as: <div id="sect1_iD_xyz" class="sect1"
lang="en"> in chunked HTML output?

Rgds, Dermot
-- 
View this message in context: http://www.nabble.com/Adding-an-ID-attribute-to-HTML-sect1-output-tp25783938p25783938.html
Sent from the docbook General mailing list archive at Nabble.com.



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]