← Prev in month ← Prev in thread
Next in thread → Next in month →

RE: DOCBOOK-APPS: Generating Preview Documents [solved]

From
Stephan Wiesner <>
Date
2002-10-17T07:43:50+00:00
ID
001201c275b0$c6bf12a0$0100a8c0@littleone
Thread
RE: DOCBOOK-APPS: Generating Preview Documents [solved]
Hi Bob, thanks for your quick and helpfull reply.
apply-import did the trick.



Stephan


> -----Original Message-----
> From:  [mailto:] 
> Sent: Donnerstag, 17. Oktober 2002 09:09
> To: Stephan Wiesner; 'docbook apps list'
> Subject: Re: DOCBOOK-APPS: Generating Preview Documents
> 
> 

> I'm not completely clear on what you mean by a preview 
> document.  It seems you want a complete document except all 
> chapters but one do not appear?  If that is the case, you 
> might try using <xsl:apply-imports/> in your customization 
> instead of <xsl:apply-templates/>.
> 
> When you do apply-templates, it is only being applied to
> the children of chapter.  But you need the chapter element 
> template to start the page-sequence.  By using apply-imports 
> instead, you tell the processor to use the original chapter 
> template.  Since it is conditional on the selected id, only 
> that chapter should be output.
> 
> If you just want to generate a chapter with its own TOC,
> you can do it with a couple of parameters and the
> stock fo stylesheet:
> 
> rootid="chap_preview"
> generate.toc="chapter toc"
> 
> The first parameter selects only that element for output.
> The second parameter causes the chapter to have a TOC
> (which it normally does not have in print).
> 
> -- 
> 
> Bob Stayton                                 400 Encinal Street
> Publications Architect                      Santa Cruz, CA  95060
> Technical Publications                      voice: (831) 427-7796
> Caldera International, Inc.                 fax:   (831) 429-1887
>                                             email: 
>
← Prev in month ← Prev in thread
Next in thread → Next in month →