Pages: 1
Print
Author Topic: Text in comment tags is removed during transformation to HTML  (Read 165 times)
dduffy
Member

Posts: 10


« on: August 25, 2011, 01:55:13 PM »

We are trying to include basic HTML comment tags <!--Text here--> in HTML output. The brackets come over into the HTML files from the XML but the text within the brackets is missing. I tried transforming into several different HTML outputs provided by XMetaL Author 6.0.1 with the same results.

Has anyone else have this occur? Any workarounds?

Thanks, Dianne
Logged
gcrews
Member

Posts: 189


« Reply #1 on: August 26, 2011, 11:32:50 AM »

I don’t think the Toolkit or DITA was really designed to carry comments though to the output.  You would likely have to add a template like the following in all the xsl templates that transform the files to html (including preprocessing, conref and stuff):

<xsl:template match="comment()">
  <xsl:comment><xsl:value-of select="."/></xsl:comment>
</xsl:template>

Logged
Pages: 1
Print
Jump to: