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] | [Elist Home]


Subject: 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: bobs@caldera.com [mailto:bobs@caldera.com] 
> 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: bobs@caldera.com
> 



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


Powered by eList eXpress LLC