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

View: New views
2 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: [docbook] Adding an ID attribute to HTML sect1 output

by Bob Stayton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

[moving this over to the docbook-apps mailing list where stylesheet issues
are discussed.]

Hi,
What version of the stylesheets are you using?  Chunked section id output
started in version 1.73.1 of the stylesheets.

Bob Stayton
Sagehill Enterprises
bobs@...


----- Original Message -----
From: "Dermot O'H" <dermot.ohalloran@...>
To: <docbook@...>
Sent: Wednesday, October 07, 2009 5:16 AM
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.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-unsubscribe@...
> For additional commands, e-mail: docbook-help@...
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@...
For additional commands, e-mail: docbook-apps-help@...


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

by Dermot O'H :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Bob,

My apologies. I was looking for the ID in <div class="sect1" lang="en"> but didn't notice it was actually being generated in <h2 class="title" id="book.chap.sect"> further down the tree. I'm afraid I've been asleep at the wheel today...

Rgds, Dermot