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

Re: Removing line breaks without normalize-space()

Subject: Re: Removing line breaks without normalize-space()
From: Rashmi Rubdi <dev_subscriptions@xxxxxxxxx>
Date: Tue, 19 Sep 2006 23:21:27 -0700 (PDT)
remove line space
To eliminate extra white spaces and lines I use
<xsl:output indent="no" /> 

It makes the entire output fall in one line, while
preserving the spaces in between elements.

--- Mukul Gandhi <gandhi.mukul@xxxxxxxxx> wrote:

> Perhaps adding the instruction <xsl:strip-space
> elements="*" /> (as
> child of xsl:stylesheet) will solve the problem.
> 
> On 9/19/06, Mark Peters <flickrmeister@xxxxxxxxx>
> wrote:
> > Hi,
> >
> > Is there any way to remove line breaks without
> deleting the whitespace
> > in-between elements? For example, suppose you
> started with the
> > following XML:
> >
> > <paragraph>
> >        <sentence>Some words are <i>italicized</i>
> and some words are in
> > <b>bold</b>.</sentence>
> >        <sentence>Some words are
> <u>underlined</u>.</sentence>
> > </paragraph>
> >
> >
> > I'd like to remove the line breaks, but otherwise
> retain any existing
> > whitespace between elements, resulting in the
> following XML:
> >
> > <paragraph><sentence>Some words are
> <i>italicized</i> and some words
> > are in <b>bold</b>.</sentence><sentence>Some words
> are
> > <u>underlined</u>.</sentence></paragraph>
> >
> > I'm trying to avoid sentences whose contents run
> together when I
> > process the text.
> >
> > Thanks!
> >
> > Mark
> >
> > --
> >
> > Mark Peters
> > Senior Technical Writer
> > Saba Software
> 
> 
> -- 
> Regards,
> Mukul Gandhi
> 
> http://gandhimukul.tripod.com
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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.