This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Including predefined HTML code into chunked HTML
- From: "Bob Stayton" <bobs at sagehill dot net>
- To: Bernd Pörner <bernd dot poerner at imformgroup dot com>, <docbook-apps at lists dot oasis-open dot org>
- Date: Thu, 16 Sep 2004 08:46:42 -0700
- Subject: Re: [docbook-apps] Including predefined HTML code into chunked HTML
- References: <41497F3C.1070305@imformgroup.com>
The basic problem is that an XSL stylesheet is an XML file that permits XML
comments. So your line is a perfectly fine comment in the XSL file, so it
will not be interpreted as part of the template for output, and so it will
not generate a comment in the output. You need to use <xsl:comment> to
generate an XML comment in the output.
Also, you don't need to copy the 'chunk-element-content' to your
customization. The 'user.header.content' is an empty template waiting for
such customization. See this reference for an example of how to use it:
http://www.sagehill.net/docbookxsl/HTMLHeaders.html#HeaderExtras
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net
----- Original Message -----
From: "Bernd Pörner" <bernd.poerner@imformgroup.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Thursday, September 16, 2004 4:55 AM
Subject: [docbook-apps] Including predefined HTML code into chunked HTML
> Dear all,
>
> I want to include some <!--#include virtual="/Inc/xyz.inc" --> lines
> into chunked HTML files.
>
> For that purpose I have copied the complete <xsl:template
> name="chunk-element-content"> template from xhtml/chunk-common.xsl to my
> customization layer and edited it as follows:
>
> After <xsl:call-template name="user.header.content"/> I added one line:
> <!--#include virtual="/Inc/header.inc" -->
> Before </body> I added <!--#include virtual="/Inc/footer.inc" -->
>
> The problem is that both include lines are not included in the resulting
> HTML chunk files.
>
> What's my mistake?
>
> Cheers
> B.
>
>
>