[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: 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 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. > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]