[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [docbook-apps] Editing the header for the TOC file for profiled HTML output
Thanks! That worked nicely.
Regards,
Jeff Powanda
jpowanda@vocera.com
Vocera Communications, Inc.
(408) 882-5150
-----Original Message-----
From: Bob Stayton [mailto:bobs@sagehill.net]
Sent: Tuesday, March 05, 2013 10:57 AM
To: Jeff Powanda; docbook-apps@lists.oasis-open.org
Subject: Re: [docbook-apps] Editing the header for the TOC file for profiled HTML output
Hi Jeff,
You would need to modify the same system.head.content template, but make the
change conditional on the context element. When the TOC is generated, the
context is the book element, while for other chunks it is the chunked
element.
<xsl:choose>
<xsl:when test="self::d:book">
do this
<xsl:otherwise>
do that
</xsl:otherwise>
</xsl:choose>
But the context is book for the titlepage too, so if you separate your TOC
from your titlepage, both files will get the same script.
Bob Stayton
Sagehill Enterprises
bobs@sagehill.net
From: Jeff Powanda
Sent: Monday, March 04, 2013 12:02 PM
To: docbook-apps@lists.oasis-open.org
Subject: [docbook-apps] Editing the header for the TOC file for profiled
HTML output
I'd like to produce a TOC file (index.html) for profiled HTML output that
has a different header (with a different script) than the other HTML files.
I've already modified the system.head.content template (located in the
html/profile-docbook.xsl file) to add a script to all the HTML output files.
Now I want to special case the TOC file and use a different script for that
file. Which template should I modify to do that?
Regards,
Jeff Powanda
jpowanda@vocera.com
Vocera Communications, Inc.
(408) 882-5150
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]