RE: [xsl] Saxon is adding line breaks

Subject: RE: [xsl] Saxon is adding line breaks
From: mark_fletcher@xxxxxxxxxxxxxx
Date: Wed, 9 Apr 2003 16:53:53 -0700
Hi again.  I've been viewing the results in both Wordpad and Notepad (both
with wrapping turned off).  The wrapping only happens on long text strings.
Long xml tags (with many parameters) don't wrap at all.

Here's one other thing about my code: I'm grabbing titles from a series of
documents using document() and then saxon:node-set() to get the elements in
a usable context.

Perhaps the node-set function is putting breaks in the title text?  If so,
is there a way around?


Mark Fletcher
PeopleSoft Language Engineering
925.694.3753
mark_fletcher@xxxxxxxxxxxxxx




                                                                                                                          
                      "Martinez, Brian"                                                                                   
                      <brian.martinez@xxxxxxxxxx        To:       "'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'"                     
                      m>                                 <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>                                
                      Sent by:                          cc:                                                               
                      owner-xsl-list@xxxxxxxxxxx        Subject:  RE: [xsl] Saxon is adding line breaks                   
                      rrytech.com                                                                                         
                                                                                                                          
                                                                                                                          
                      04/09/2003 03:00 PM                                                                                 
                      Please respond to xsl-list                                                                          
                                                                                                                          
                                                                                                                          





> 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









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


Current Thread