After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 439825 - Whitespace is not added after a copied processing instruction (even with indent on)
Whitespace is not added after a copied processing instruction (even with inde...
Status: RESOLVED OBSOLETE
Product: libxslt
Classification: Platform
Component: general
1.1.16
Other All
: Normal minor
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2007-05-20 01:57 UTC by Brett
Modified: 2021-07-05 11:00 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6



Description Brett 2007-05-20 01:57:28 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:
Comment 1 GNOME Infrastructure Team 2021-07-05 11:00:55 UTC
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.