Hi. I'm trying to output a carriage return followed by a line feed (CRLF)
for compatability with a mainframe system I'm working with (don't ask). For
some reason, though, I never get the CR.
To simply the issue, I'm using the following stylesheet:
Code:
<?xml version="1.0" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="text" />
<xsl:template match="/">
<xsl:text>Hello.& # x d; & # x a;</xsl:text>
</xsl:template>
</xsl:stylesheet>
(I added the extra spaces so those aren't interpreted as breaks by the
browser -- in the actual stylesheet, there are no spaces.)
From all the posts I've seen on this list, this should work. But when I view
the resulting file in hex, this is what I get:
Code:
48 65 6C 6C 6F 2E 0A
So that's H E L L O [LF]. What happened to the CR (0D)? I've tried this with
both Saxon 8.6.1 and Xalan 2.7.0 ... same results.
Any ideas?
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--