Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.5
-
None
-
Operating System: Other
Platform: Other
-
19306
-
PatchAvailable
Description
<xsl:copy> produces a node AND a linefeed for processing-instruction nodes in
the "root" of the document.
Example:
The following template faithfully reproduces an XML document:
<xsl:template match="node() | @*">
<xsl:copy>
<xsl:apply-templates select="node() | @*"/>
</xsl:copy>
</xsl:template>
...EXCEPT when the document contains processing instruction nodes in the
"root" (ie. before the "document" element). There doesn't seem to be a problem
for nodes that are descendants of the "document" element.
Attachments
Attachments
Issue Links
- is duplicated by
-
XALANJ-2267 XML serializer adds end-of line after a processing-instruction when outside of an element
- Resolved