[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Saxon is adding line breaks

Subject: RE: Saxon is adding line breaks
From: mark_fletcher@xxxxxxxxxxxxxx
Date: Wed, 9 Apr 2003 16:53:53 -0700
adding line breaks in xml
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:  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:  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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.