RE: [xsl] Saxon is adding line breaks

Subject: RE: [xsl] Saxon is adding line breaks
From: "Martinez, Brian" <brian.martinez@xxxxxxxxxxx>
Date: Wed, 9 Apr 2003 16:00:05 -0600
> From: mark_fletcher@xxxxxxxxxxxxxx 
> [mailto:mark_fletcher@xxxxxxxxxxxxxx]
> Sent: Wednesday, April 09, 2003 3:35 PM
> Subject: RE: [xsl] Saxon is adding line breaks
> 
> Thanks, Brian.  I'm using the xml output method with utf-8 
> encoding.  Also,
> I'm outputting in 'standalone' mode (no DTD specified).  My 
> Saxon version
> is 6.5.2.
> 
> How long a line of text did you try?  Did you use my example 
> text (which,
> by the way was wrapped by email--the source text really is unwrapped)?

Actually, I took out the line break when pasting it into my editor.  I
couldn't reproduce the problem at all when using XML output.

Could it be your user agent?  I viewed the output in XML Spy 4.4, which uses
IE for its browser view, and I simply did not see this problem.  (The line
wraps if your browser window is too narrow, of course.)  I used the
following transformation since you didn't provide sample code:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
  
  <xsl:output method="xml" encoding="utf-8"/>
	
  <xsl:template match="/">
  <title><xsl:value-of select="normalize-space(title)"/></title>

  </xsl:template>
  
</xsl:stylesheet>

cheers,
b.

| brian martinez                           brian.martinez@xxxxxxxxxxx |
| lead gui programmer                                    303.708.7248 |
| cheap tickets, part of trip network                fax 303.790.9350 |
| 6436 s. racine cir.                             englewood, co 80111 |
| cendant travel distribution services   http://www.cheaptickets.com/ |

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread