Re: [docbook-apps] Title of a toc, when toc is generated at a user-specified position

2013-10-28 Thread Bob Stayton

Hi Erik,
Setting a completely empty 'generate.toc' param is a little too much it 
seems. Instead of:




use one that specifies only the title for a book toc:


book title


That will generate the title for the relocated toc, with one glitch.  If you 
are using the default 'header.content' template for your page headers, you 
will get a couple of warning messages about "Request for title ...". That's 
because the header template is trying to process the toc element (which has 
its own page sequence) to get a title for the header.  But the stylesheet is 
missing a template matching on "toc" in mode="title.markup".  The following 
template fixes that problem,  and I will add it to the next release.




 
 
 
   
 mode="title.markup">

   
 
   
   
 
   
 
   
 


Bob Stayton
Sagehill Enterprises
b...@sagehill.net

--
From: "Erik Leunissen" 
Sent: Monday, October 28, 2013 2:08 PM
To: 
Subject: [docbook-apps] Title of a toc, when toc is generated at a 
user-specified position


When choosing to place the TOC of a book after the book's preface, it 
appears that one loses[*] the TOC's generated title as a side-effect. That 
is, when following the recipe in this URL:


  https://lists.oasis-open.org/archives/docbook-apps/200705/msg00023.html

What's the best approach to make this TOC have a title nonetheless?

Thanks in advance,

Erik Leunissen (xsltproc - fop1.1 -> pdf)
--

[1] Adding a title to toc in the xml source makes the toc element 
non-empty, which effectively disables the "process.empty.source.toc" 
parameter.


-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org





-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Title of a toc, when toc is generated at a user-specified position

2013-10-29 Thread Erik Leunissen

On 29/10/13 05:50, Bob Stayton wrote:


...
That will generate the title for the relocated toc, with one glitch.  If
you are using the default 'header.content' template for your page
headers, you will get a couple of warning messages about "Request for
title ...". That's because the header template is trying to process the
toc element (which has its own page sequence) to get a title for the
header.  But the stylesheet is missing a template matching on "toc" in
mode="title.markup".  The following template fixes that problem,  and I
will add it to the next release.
...


Hello Bob,

Thanks very much for this ready-to-use recipe. It produces exactly what 
I want.


However, it doesn't do exactly what you describe w.r.t. the warning 
messages: two of them are still emitted when I'm doing the processing 
here. For me this is not an issue. I'm happy with the result in the PDF.


Thanks a lot,

Erik Leunissen.
--

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



Re: [docbook-apps] Title of a toc, when toc is generated at a user-specified position

2013-10-29 Thread Erik Leunissen

On 29/10/13 18:02, Erik Leunissen wrote:


...
However, it doesn't do exactly what you describe w.r.t. the warning
messages: two of them are still emitted when I'm doing the processing
here.
...


..., which is only because I happen to need all my docbook 5 elements 
prefixed with the namespace "d:".


Doing that, makes all warnings go away, just as you said.

Greetings,

Erik.


-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org