This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Website and Apache SSI
- From: Bob Stayton <bobs at caldera dot com>
- To: Ildar Mulyukov <ildar at users dot sourceforge dot net>,docbook-apps at lists dot oasis-open dot org
- Date: Thu, 11 Apr 2002 09:27:37 -0700
- Subject: Re: DOCBOOK-APPS: Website and Apache SSI
- References: <3CB56360.7040705@users.sourceforge.net>
On Thu, Apr 11, 2002 at 02:20:16PM +0400, Ildar Mulyukov wrote:
> Hello all
> I have stuck with making up a site with Website
> (http://sourceforge.net/projects/docbook).
>
> I just want to use Apache SSI within my pages. But Apache SSI implies
> following text in HTML:
> <!--#include file="somefile.html" -->
>
> But xsl processor filters out this comment so that I have nothing of
> this in my HTML. Could you please give a solution? More general is there
> a way to include comments in generated HTML?
I presume these comments exist in your XML source and
you want to pass them through?
You can add a template such as this to your customization
layer to print comments. This one selects comments within
<para> tags, but you can set your own match.
<xsl:template match="para/comment()">
<xsl:text disable-output-escaping="yes"><!--</xsl:text>
<xsl:value-of select="."/>
<xsl:text disable-output-escaping="yes">--></xsl:text>
</xsl:template>
If you are generating the comments from XML elements
or attributes, then you can still use the <xsl:text>
method to output them, but with a different <xsl:value-of>.
--
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
Caldera International, Inc. fax: (831) 429-1887
email: bobs@caldera.com