Hi,
I'm not clear on what is happening here. The chunk-changebars.xsl stylesheet does not generate frames. But one can generate a separate bk01-toc.html file if you set the stylesheet param 'chunk.tocs.and.lots' to 1.

Regardless of how the frames are generated, the call to 'user.head.content' will have the book element as the context node for both the titlepage and the book TOC. At that point in the process, the information that one is a TOC is not passed a template param, so I don't see how to tell them apart from within 'user.head.content'.


Bob Stayton
Sagehill Enterprises
[email protected]

--------------------------------------------------
From: <[email protected]>
Sent: Wednesday, December 19, 2012 12:58 AM
To: <[email protected]>
Subject: AW: AW: [docbook-apps] Custom TOC frame

Hello,

thanks for your answer, but this does not work.

I create the two frames with "chunk-changebars.xsl": this generates an "index.html" (the main document/frame) and a " bk01-toc.html" (the navigation frame). " user.head.content" is called for both files, but "local-name(.)" is always "book" (because my source file is a "book").

What function must I call to find out, what frame is currently written?

THANKS

Mit freundlichen Grüßen / Kind regards / S pozdravem

Steffen Wagner, VoyagerSoft
[email protected]

ZF Friedrichshafen AG
88038 Friedrichshafen, Deutschland/Germany
Telefon/Phone +49 7541 77-7644
[email protected]
Software Consultant


Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Prof. Dr. Giorgio Behr Vorstand/Board of Management: Hans-Georg Härter (Vorsitzender/CEO), Dr. Stefan Sommer, Dr. Konstantin Sauer, Dr. Peter Ottenbruch, Jürgen Holeksa, Dr. Gerhard Wagner, Reinhard Buhl, Rolf Lutz, Wilhelm Rehm
Sitz/Headquarters: Friedrichshafen
Handelsregistereintrag Amtsgericht Ulm HRB 630206/Trade register of the municipal court of Ulm HRB 630206

-----Ursprüngliche Nachricht-----
Von: Bob Stayton [mailto:[email protected]]
Gesendet: Montag, 17. Dezember 2012 21:00
An: Wagner Steffen EXT FRD Hays
Betreff: Re: AW: [docbook-apps] Custom TOC frame

Hi,
Your user.head.content would need to check the element type before
inserting the code:

<xsl:if test="local-name(.) = 'book'">
 ...


Bob Stayton
Sagehill Enterprises
[email protected]

--------------------------------------------------
From: <[email protected]>
Sent: Monday, December 17, 2012 3:39 AM
To: <[email protected]>
Subject: AW: [docbook-apps] Custom TOC frame

> Hello,
>
> that works fine, thanks!
>
> Now I want to include a JavaScript and a CSS file only in the toc file
> (bk01.html) and not in the main HTML.
> Currently I use " user.head.content" to add this.
>
> Mit freundlichen Grüßen / Kind regards / S pozdravem
>
> Steffen Wagner, VoyagerSoft
> [email protected]
>
> ZF Friedrichshafen AG
> 88038 Friedrichshafen, Deutschland/Germany Telefon/Phone +49 7541
> 77-7644 [email protected] Software Consultant
>
>
> Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Prof.
> Dr. Giorgio Behr
> Vorstand/Board of Management: Hans-Georg Härter (Vorsitzender/CEO),
Dr.
> Stefan Sommer, Dr. Konstantin Sauer, Dr. Peter Ottenbruch, Jürgen
> Holeksa, Dr. Gerhard Wagner, Reinhard Buhl, Rolf Lutz, Wilhelm Rehm
> Sitz/Headquarters: Friedrichshafen
> Handelsregistereintrag Amtsgericht Ulm HRB 630206/Trade register of
> the municipal court of Ulm HRB 630206
>> -----Ursprüngliche Nachricht-----
>> Von: Bob Stayton [mailto:[email protected]]
>> Gesendet: Freitag, 14. Dezember 2012 18:30
>> An: Wagner Steffen EXT FRD Hays; [email protected]
>> Betreff: Re: [docbook-apps] Custom TOC frame
>>
>> Hi,
>> In the 1.77.1 version, you will need to copy the 'make.toc' template
>> from html/autotoc.xsl to your customization layer and add it after:
>>
>>  <xsl:element name="{$toc.list.type}">
>>   <xsl:attribute name="class">mktree</xsl:attribute>
>>
>> In the forthcoming version, a template named 'toc.list.attributes' is
>> called at that point and can be customized to add class or other
>> attributes to that element.
>>
>> Bob Stayton
>> Sagehill Enterprises
>> [email protected]
>>
>> --------------------------------------------------
>> From: <[email protected]>
>> Sent: Friday, December 14, 2012 8:18 AM
>> To: <[email protected]>
>> Subject: [docbook-apps] Custom TOC frame
>>
>> > Hello,
>> >
>> > I try to customize the "bk01-toc.html" file with the
>> > table-of-contents when generating HTML frames from a DocBook file.
>> >
>> > Now I need to add a CSS class "mktree" to the topmost "ul" (I
>> > replaced "dt" by "ul"):
>> >
>> > <p><b>Table Of Contents</b></p>
>> > <ul CLASS="mktree">
>> > <li><span class="preface"><a
>> > href="main.html#id393513">History</a></span></li>
>> > <li><span class="preface"><a
>> > href="main.html#id395699">Preface</a></span></li>
>> > ...
>> >
>> >
>> > How can I add this class to the TOC list?
>> > My JavaScript (for handling the navigation) needs to find the
>> > topmost "ul"
>> > by an ID.
>> >
>> > THANKS
>> >
>> >
>> >
>> >
>> >
>> > Mit freundlichen Grüßen / Kind regards / S pozdravem
>> >
>> > Steffen Wagner, VoyagerSoft
>> > [email protected]
>> >
>> > ZF Friedrichshafen AG
>> > 88038 Friedrichshafen, Deutschland/Germany Telefon/Phone +49 7541
>> > 77-7644 [email protected] Software Consultant
>> >
>> >
>> > Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board:
Prof.
>> > Dr. Giorgio Behr
>> > Vorstand/Board of Management: Hans-Georg Härter
(Vorsitzender/CEO),
>> Dr.
>> > Stefan Sommer, Dr. Konstantin Sauer, Dr. Peter Ottenbruch, Jürgen
>> Holeksa,
>> > Dr. Gerhard Wagner, Reinhard Buhl, Rolf Lutz, Wilhelm Rehm
>> > Sitz/Headquarters: Friedrichshafen
>> > Handelsregistereintrag Amtsgericht Ulm HRB 630206/Trade register of
>> > the municipal court of Ulm HRB 630206
>> >
>> >
>> > -------------------------------------------------------------------
>> > -- 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]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to