Re: [docbook-apps] Including predefined HTML code into chunked HTML

From
"Cob Rtayton"
Date
2004-09-16T15:46:47+00:00
ID
03dc01c49c04$5df2ec20$6401a8c0@toshiro
Thread
Re: [docbook-apps] Including predefined HTML code into chunked HTML
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


----- Original Message ----- 
From: "Bernd P顤ner" <>
To: <>
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.
>
>
>