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: [docbook-apps] HTML comment within a template


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/.


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