GNOME Bugzilla – Bug 436771
comment() won't produce processing instructions inside
Last modified: 2007-06-12 14:47:34 UTC
Please describe the problem: This is a small problem, but I thought I'd report it. If entities or processing instructions have been added within a comment in the XML document, when XSL does a match, it will not output that part: Steps to reproduce: 1. Add such comments to the XML file: <!-- blah <?proc-inst ?> more blah --> 2. Process the comment in the XSLT file: <xsl:template match="comment()"> <xsl:copy/> </xsl:template> 3. Look on in horror at the result. Ok, maybe not horror... Actual results: Only the text before and after gets printed: <!-- blah more blah --> Expected results: Everything should be printed: <!-- blah <?proc-inst ?> more blah --> Does this happen every time? Yes Other information:
Fixed with bug #413451