You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Joanne Tong (JIRA)" <xa...@xml.apache.org> on 2005/09/09 22:56:30 UTC

[jira] Created: (XALANJ-2197) newline in xsl:comment

newline in xsl:comment
----------------------

         Key: XALANJ-2197
         URL: http://issues.apache.org/jira/browse/XALANJ-2197
     Project: XalanJ2
        Type: Bug
  Components: Serialization  
    Versions: 2.7    
 Environment: Windows
    Reporter: Joanne Tong
 Assigned to: Brian Minchau 


For the following stylesheet:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

  <xsl:template match="/">
	<LRE><xsl:text>hello &#xA; bye </xsl:text></LRE><xsl:comment><xsl:text>hello &#xA; bye </xsl:text></xsl:comment>
  </xsl:template>

</xsl:stylesheet>

The first newline and the second newline in the output are different.  They should be the same for any operating environment.

-- 
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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANJ-2197) newline in xsl:comment

Posted by "Mike Brown (JIRA)" <xa...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XALANJ-2197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12473538 ] 

Mike Brown commented on XALANJ-2197:
------------------------------------

I am noticing this, too. To better summarize the problem: when using Xalan-J on Windows, when serializing to stdout or a file, newlines in comments created with xsl:comment are emitted as LF only, not CR+LF like the newlines in the rest of the file.

> newline in xsl:comment
> ----------------------
>
>                 Key: XALANJ-2197
>                 URL: https://issues.apache.org/jira/browse/XALANJ-2197
>             Project: XalanJ2
>          Issue Type: Bug
>          Components: Serialization
>    Affects Versions: 2.7
>         Environment: Windows
>            Reporter: Joanne Tong
>         Assigned To: Brian Minchau
>
> For the following stylesheet:
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
>   <xsl:template match="/">
> 	<LRE><xsl:text>hello &#xA; bye </xsl:text></LRE><xsl:comment><xsl:text>hello &#xA; bye </xsl:text></xsl:comment>
>   </xsl:template>
> </xsl:stylesheet>
> The first newline and the second newline in the output are different.  They should be the same for any operating environment.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org