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

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

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


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
	wagner@voyagersoft.de

	ZF Friedrichshafen AG
	88038 Friedrichshafen, Deutschland/Germany
	Telefon/Phone +49 7541 77-7644
	steffen.wagner.hays@zf.com
	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:bobs@sagehill.net]
> 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
> bobs@sagehill.net
> 
> --------------------------------------------------
> From: <steffen.wagner.hays@zf.com>
> Sent: Monday, December 17, 2012 3:39 AM
> To: <bobs@sagehill.net>
> 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
> > wagner@voyagersoft.de
> >
> > ZF Friedrichshafen AG
> > 88038 Friedrichshafen, Deutschland/Germany Telefon/Phone +49 7541
> > 77-7644 steffen.wagner.hays@zf.com 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:bobs@sagehill.net]
> >> Gesendet: Freitag, 14. Dezember 2012 18:30
> >> An: Wagner Steffen EXT FRD Hays; docbook-apps@lists.oasis-open.org
> >> 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
> >> bobs@sagehill.net
> >>
> >> --------------------------------------------------
> >> From: <steffen.wagner.hays@zf.com>
> >> Sent: Friday, December 14, 2012 8:18 AM
> >> To: <docbook-apps@lists.oasis-open.org>
> >> 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
> >> > wagner@voyagersoft.de
> >> >
> >> > ZF Friedrichshafen AG
> >> > 88038 Friedrichshafen, Deutschland/Germany Telefon/Phone +49 7541
> >> > 77-7644 steffen.wagner.hays@zf.com 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:
> >> > docbook-apps-unsubscribe@lists.oasis-open.org
> >> > For additional commands, e-mail:
> >> > docbook-apps-help@lists.oasis-open.org
> >> >
> >> >
> >> >
> >
> >


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