This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] HTML comment within a template
- From: Jacob Emcken <jacob at emcken dot dk>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Thu, 15 Jan 2004 22:10:31 +0100
- Subject: Re: [docbook-apps] HTML comment within a template
- References: <4006D7F4.7060609@emcken.dk>
Jacob Emcken wrote:
I want to make a template for the html chunker that makes the following
output:
<!--
<?php
//Some php lines
?>
-->
From the replys in this thread I found a soulution:
<xsl:template name="user.footer.navigation">
<xsl:comment>
<![CDATA[
<?php
include("comments.php");
?>
]]>
</xsl:comment>
</xsl:template>
The output of this:
<!--
<?php
include("comments.php");
?>
-->
The comments.php should look something like this:
<?php
echo "-->";
//All the php code
echo "<!--";
?>
I was thinking of using this to add user comments to online
documentation like those found in php.net documentation.
Thanks for all your help
--Jacob
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.