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
[email protected]
From: Jeff Powanda
Sent: Monday, March 04, 2013 12:02 PM
To: [email protected]
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
[email protected]
Vocera Communications, Inc.
(408) 882-5150
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]