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 15:04:49 -0600
> From: mark_fletcher@xxxxxxxxxxxxxx 
> [mailto:mark_fletcher@xxxxxxxxxxxxxx]
> Sent: Wednesday, April 09, 2003 12:13 PM
> Subject: [xsl] Saxon is adding line breaks
> 
> Hi all,
> 
> I'm sorry if this issue has already been addressed here.  But Saxon is
> adding line breaks in the middle of text for no apparent 
> reason.  Is there
> a way to turn this off?
> 
> Here's an example of the source and result elements.  (It's 
> from a French
> document.):
> 
> source:
> <title>Introduction aux applications Marketing du système de 
> gestion des
> relations avec la clientèle de PeopleSoft</title>
> 
> result:
> <title>Introduction aux applications Marketing du 
> syst&#xe8;me de gestion
> des relations avec la client&#xe8;le de PeopleSoft</title>
> 
> Before writing the new title, I run a normalize-space() on 
> the title text.
> I can't imagine this is causing the problem.  (And, no, my 
> text editor is
> not adding the breaks ;-)
> 
> Any ideas appreciated.  Thanks.

The only way I could reproduce this problem on Saxon 6.5.2 (or on MSXML 3)
was to use text output without specifying an encoding, or specifying utf-8.
Support for different encoding formats for text output are
implementation-dependent, and it's likely only a narrow set (like ISO
8859-1) is supported.

Setting the encoding to iso-8859-1 (or specifying XML output) fixed the
problem, but that may not be the appropriate solution for all locales.

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