[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] XSL Appendix titles
For some reason, the TOC templates do not use the gentext mechanism. I think perhaps they should, but they don't at the present. So a separate customization is needed. I provided one in my book: http://www.sagehill.net/docbookxsl/TOCcontrol.html#TOClook Bob Stayton Sagehill Enterprises bobs@sagehill.net ----- Original Message ----- From: "Kerry, Richard" <richard.kerry@siemens.com> To: <docbook-apps@lists.oasis-open.org> Sent: Tuesday, March 31, 2009 7:53 AM Subject: RE: [docbook-apps] XSL Appendix titles Just tried this. Ok so far. At least as far as getting the section title correct. I'd like the entry in the ToC to be "Appendix %n. %t" as well. Is that possible ? Presumably it just involves redefining the text for a different context ? If so, which context, and how could I find out if I wasn't asking here ? Appreciatively, Richard. > -----Original Message----- > From: Bob Stayton [mailto:bobs@sagehill.net] > Sent: 30 March 2009 17:44 > To: Richard Tector > Cc: docbook-apps@lists.oasis-open.org > Subject: Re: [docbook-apps] XSL Appendix titles > > OK, but just for future reference, here is the scoop on appendix *in* > article. > The title is generated from a gentext template located in > common/en.xml, > contained in the l:context name="title-numbered" that looks like this: > > <l:template name="article/appendix" text="%n. %t"/> > > The gentext template for just name="appendix" looks like this: > > <l:template name="appendix" text="Appendix %n. %t"/> > > To add "Appendix" to the appendix in article, you could use the > local.l10n.xml parameter to customize it to: > > <l:template name="article/appendix" text="Appendix %n. %t"/> > > That process is described here: > > http://www.sagehill.net/docbookxsl/CustomGentext.html > > This "article/appendix" gentext template is the only example in the > stylesheets that shows how you can specify a lineage on an > element to modify > its gentext output for different contexts. > > Bob Stayton > Sagehill Enterprises > bobs@sagehill.net > > > ----- Original Message ----- > From: "Richard Tector" <richard@tector.org.uk> > To: "Bob Stayton" <bobs@sagehill.net> > Cc: <docbook-apps@lists.oasis-open.org> > Sent: Monday, March 30, 2009 9:15 AM > Subject: Re: [docbook-apps] XSL Appendix titles > > > > Richard Tector wrote: > >> Processing my article either using > xsl/docbook/html/docbook.xsl or going > >> to PDF via XSL-FO produces > >> A: Blah > >> for both the title for the secion AND in the ToC. > >> > >> Perhaps it's because it's an article. I'll go and retry as a book. > >> > > > > As a book containing an article followed by the appendix, it is > > processed as Appendix A: Blah > > > > This will do fine, and has the advantage that the appendix > starts on a > > new page. Thanks anyway. > > > > > > Richard > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: > docbook-apps-help@lists.oasis-open.org > > --------------------------------------------------------------------- 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]