[ http://issues.apache.org/jira/browse/XALANJ-1966?page=comments#action_12316211 ]
Chris Bowditch commented on XALANJ-1966: ---------------------------------------- I have been trying to work out why xsl:comment did not appear to work when generating HTML for a long while now. Its not immediately obvious from the bug description that this bug is the cause. The precise re-creation steps are: 1) perform a SAX based transform that generates HTML 2) Specify a destination systemId and publicId In these circumstances, xsl:comment has no affect on output! The attached patch fixes the issue. > XSL Transformation drops content inside xsl:comment tags. > --------------------------------------------------------- > > Key: XALANJ-1966 > URL: http://issues.apache.org/jira/browse/XALANJ-1966 > Project: XalanJ2 > Type: Bug > Components: Serialization > Versions: CurrentCVS > Environment: Windows 2000. Xalan 2.6.0 > Reporter: Yash Talwar > Attachments: PatchForApacheCode.txt, patch.1966.txt > > With Xalan 2.6.0, when a simple stylesheet, say test.xsl and input xml, say > test.xml is used, transformation works fine. > If simple test.xsl file include or import other stylesheets and > imported/included stylesheets import/include more stylesheets, then, > transformation works; however, in the final output (html), content inside > xsl:comment tags are dropped. I have a big application that produced this > problem. I cannot provide a simpler version of the testcase. However, I > have resolved the issue by making one minor change in the code. I will > provide the patch that resolved my problem. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
