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]

Reply via email to