if you are a human please do not click here
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
Username :
Password :
Home
Help
Calendar
Register
Login
XMetaL Community Forums
»
General
»
DITA and XMetaL Discussion
»
Text in comment tags is removed during transformation to HTML
Pages:
1
« previous
next »
Print
Author
Topic: Text in comment tags is removed during transformation to HTML (Read 165 times)
dduffy
Member
Posts: 10
Text in comment tags is removed during transformation to HTML
«
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
Re: Text in comment tags is removed during transformation to HTML
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> Forum Information
=> General XMetaL Discussion
=> DITA and XMetaL Discussion
=> XMetaL Tips and Tricks
=> XMetaL Announcements and Events
Loading...