Altova Mailing List Archives

[xsl] Commented contents not considered for XSLT Transformation.

From: "V.Ramkumar" <V.Ramkumar@---------------------->
Date: 8/30/2008 7:08:00 AM
Hi list,

I'm doing XSLT(2.0) Transformation XML 2 XML using saxon9. In my input XML
have some block of text commented, so it's not transformed/coming in output
even I match the comment. Please suggest.

In my XSLT,
<xsl:template match="comment()"><xsl:apply-templates/></xsl:template>

In my XML,
<!--<subsection id="ss1" level="1" type="introduction">
				<heading id="h0"
				<p>Hemorrhage from esophageal varices is a
common and clinically significant problem in combination therapy in the
prevention of recurrent variceal hemorrhage is unclear.</p>
				<p>Recent data EBL would then be recommended
for the subset of patients failing to achieve an adequate decline in their
HVPG (<link rid="b17 b18">17, 18</link>).</p></subsection>-->



These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.