[ https://issues.apache.org/jira/browse/XALANJ-656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gavin updated XALANJ-656: ------------------------- Comment: was deleted (was: [best online casino|https://lists.umbc.edu/lists/d_read/1211/best-casino.html] [deposit casino bonus|https://lists.umbc.edu/lists/d_read/1211/casino-bonus.html] [free casino games download|https://lists.umbc.edu/lists/d_read/1211/casino-free-games.html] [casino glucksspiel|https://lists.umbc.edu/lists/d_read/1211/casino-glucksspiel.html] [casino hotel |https://lists.umbc.edu/lists/d_read/1211/casino-hotel.html] [casinos online|https://molior.mcs.suffolk.edu/bugzilla/attachment.cgi?id=61] [casino slot machines|https://molior.mcs.suffolk.edu/bugzilla/attachment.cgi?id=63] [casino spiele|https://molior.mcs.suffolk.edu/bugzilla/attachment.cgi?id=64] [casino und hotel|https://molior.mcs.suffolk.edu/bugzilla/attachment.cgi?id=66] [casino hotel|https://molior.mcs.suffolk.edu/bugzilla/attachment.cgi?id=67] [online kasino bonus|https://molior.mcs.suffolk.edu/bugzilla/attachment.cgi?id=69] [free casino online games|https://molior.mcs.suffolk.edu/bugzilla/attachment.cgi?id=70] [freies kasino|https://molior.mcs.suffolk.edu/bugzilla/attachment.cgi?id=71] [casino & hotel|https://molior.mcs.suffolk.edu/bugzilla/attachment.cgi?id=72] [kasino go higher|https://lists.umbc.edu/lists/d_read/1211/kasino-hotel.html] [kasino spiel|https://lists.umbc.edu/lists/d_read/1211/kasino-spiele.html] [888 kasino|https://lists.umbc.edu/lists/d_read/1211/kasino-und-hotel.html] [online kasino|https://lists.umbc.edu/lists/d_read/1211/kasino.html] [kasinos online|https://lists.umbc.edu/lists/d_read/1211/kasinos-online.html] [kasino go higher|https://lists.umbc.edu/lists/d_read/1211/kasinos.html] [kostenlos casinospiele|https://lists.umbc.edu/lists/d_read/1211/kostenlose-casinospiele.html] [casino free no deposit|https://lists.umbc.edu/lists/d_read/1211/no-deposit-casino.html] [online casino|https://lists.umbc.edu/lists/d_read/1211/online-casino.html] [online kasino |https://lists.umbc.edu/lists/d_read/1211/online-kasino.html] [resort hotel casino|https://lists.umbc.edu/lists/d_read/1211/resort-casino.html] ) > <xsl:copy> introduces inappropriate line-end characters processing comments > --------------------------------------------------------------------------- > > Key: XALANJ-656 > URL: https://issues.apache.org/jira/browse/XALANJ-656 > Project: XalanJ2 > Issue Type: Bug > Components: Xalan > Affects Versions: 2.2.0 > Environment: Operating System: MacOS 9 > Platform: Macintosh > Reporter: Angus McIntyre > Assignee: Xalan Developers Mailing List > Priority: Minor > > I was trying to write a template that would correctly reproduce the script > body of a JavaScript (which is typically 'masked' by a comment). My initial > attempt was: > <xsl:template match="script/comment()"> > <xsl:copy/> > </xsl:template> > which worked, except that the copied script contained newline (ASCII 10) > in place of the carriage-return (ASCII 13) characters in the original. Note > that this is on a Macintosh, where line-endings are terminated by CR > rather than LF; I suspect it wouldn't manifest as a problem on UN*X). My > guess is that in this case, <xsl:copy> is causing Xalan to simply write LF's > rather than the appropriate platform-specific line terminators. > A workaround is to use: > <xsl:template match="script/comment()"> > <xsl:comment><xsl:value-of select="."/></xsl:comment> > </xsl:template> -- 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-unsubscr...@xml.apache.org For additional commands, e-mail: xalan-dev-h...@xml.apache.org