
|
If you were logged in you would be able to see more operations.
|
|
|
|
Environment:
|
Operating System: MacOS 9
Platform: Macintosh
Operating System: MacOS 9
Platform: Macintosh
|
|
Issue Links:
|
Blocker
|
|
This issue blocks:
|
|
FOR-492
Inconsistent Line Endings in generated sites
|
|
|
|
|
|
|
|
|
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>
|
|
Description
|
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> |
Show » |
| No work has yet been logged on this issue.
|
|