[ http://issues.apache.org/jira/browse/XALANJ-1497?page=comments#action_12369494 ]
David Bertoni commented on XALANJ-1497: --------------------------------------- The XSLT recommendation allows modification of the result tree's content when indenting is enabled: http://www.w3.org/TR/xslt#strip "The xml output method should use an algorithm to output additional whitespace that ensures that the result if whitespace were to be stripped from the output using the process described in [3.4 Whitespace Stripping] with the set of whitespace-preserving elements consisting of just xsl:text would be the same when additional whitespace is output as when additional whitespace is not output. NOTE:It is usually not safe to use indent="yes" with document types that include element types with mixed content." > xsl:copy adds a newline to processing instructions > -------------------------------------------------- > > Key: XALANJ-1497 > URL: http://issues.apache.org/jira/browse/XALANJ-1497 > Project: XalanJ2 > Type: Bug > Components: transformation, Xalan-interpretive > Versions: 2.5 > Environment: Operating System: Other > Platform: Other > Reporter: dcaveney > Assignee: Brian Minchau > Attachments: d19306.xml, d19306.xsl > > <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. -- 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]