DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29088>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29088

New line Problem in notepad





------- Additional Comments From [EMAIL PROTECTED]  2004-06-01 22:29 -------
You do have a template named "record1":
<xsl:template name="record1">
  <xsl:apply-templates select="employee-info" mode="record1"/>
</xsl:template>

So I added another similar one for "record2" to correct the error. When 
creating nodes for record2 you start with a text node that has a &#A; 
character. Because the XML (the stylesheet XML that is) is normalized by the 
XML parser before the XSL processor sees it, this new line will look like any 
other line termination. 

In other words
<xsl:text>abc&#A;def</xsl:text> 

will be parsed the same as:
<xsl:text>abc
def</xsl:text>
where this second example has a system dependent line separator.

Another of your templates has the same <xsl:text>&#A;<xsl:text>.  On output 
these newlines are normalized to the system line separators, on UNIX that would 
be a newline (hex A) but on windows that would be carriage return followed by 
newline (hex D then hex A).  A hex dump of the output generated shows this:

     0000:  0D0A 317C 3231 3331  3233 3132 3331 7C42     *..1|2131231231|B*
     0010:  7574 6C65 727C 4A61  6E65 747C 537C 0D0A     *utler|Janet|S|..*
     0020:  327C 3134 3135 342E  3932 7C31 3136 392E     *2|14154.92|1169.*
     0030:  307C 0D0A 317C 3334  3637 3636 3039 377C     *0|..1|346766097|*
     0040:  4A65 7261 6C64 737C  5365 616E 7C4D 7C0D     *Jeralds|Sean|M|.*
     0050:  0A32 7C39 3833 2E30  397C 7C                 *.2|983.09||     *

It is exactly what I'd expect 0D0A before each type '1' output and the same for 
type '2' output. This may not look pretty in a particular editor, but I don't 
see a bug here.
Regards,
Brian Minchau

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to