[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: DOCBOOK-APPS: Website and Apache SSI
Oops, yes, you are correct. Forgot about that one. bobs On Thu, Apr 11, 2002 at 12:41:03PM -0400, Glass, Eric wrote: > Couldn't you also do this? > > <xsl:template match="para/comment()"> > <xsl:comment> > <xsl:value-of select="."/> > </xsl:comment> > </xsl:template> > > -----Original Message----- > From: Bob Stayton [mailto:bobs@caldera.com] > Sent: Thursday, April 11, 2002 12:28 PM > To: Ildar Mulyukov; docbook-apps@lists.oasis-open.org > Subject: Re: DOCBOOK-APPS: 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"><!--</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 > > ************************************************************************** > The information transmitted herewith is sensitive information intended only > for use by the individual or entity to which it is addressed. If the reader > of this message is not the intended recipient, you are hereby notified that > any review, retransmission, dissemination, distribution, copying or other > use of, or taking of any action in reliance upon this information is > strictly prohibited. If you have received this communication in error, > please contact the sender and delete the material from your computer. -- 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
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC