This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Website and Apache SSI


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">&lt;!--</xsl:text>
  <xsl:value-of select="."/>
  <xsl:text disable-output-escaping="yes">--&gt;</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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]