GNOME Bugzilla – Bug 439825
Whitespace is not added after a copied processing instruction (even with indent on)
Last modified: 2021-07-05 11:00:55 UTC
Please describe the problem: Whitespace does not get added (even with <xsl:output> with an indent="yes") after a processing instruction... Steps to reproduce: 1. Add this XML doc: <?processme do-sth ?> <TAG> </TAG> 2. Add this stylesheet: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="xml" version="1.0" encoding="UTF-8" omit-xml-declaration="yes" standalone="no" indent="yes" media-type="application/xml"/> <xsl:template match="/"> <xsl:apply-templates/> </xsl:template> <xsl:template match="processing-instruction()"> <xsl:copy/> </xsl:template> <xsl:template match="*"> <xsl:element name="{name()}"> <xsl:apply-templates/> </xsl:element> </xsl:template> </xsl:stylesheet> 3. Transform Actual results: <?processme do-sth ?><TAG> </TAG> Expected results: <?processme do-sth ?> <TAG> </TAG> Does this happen every time? Yes Other information:
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/libxslt/-/issues/ Thank you for your understanding and your help.