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

Re: Get rid of lines break.

Subject: Re: Get rid of lines break.
From: Mike Brown <mike@xxxxxxxx>
Date: Tue, 4 Sep 2001 10:23:25 -0600 (MDT)
get rid of line feed
Auguste Oumar wrote:
> Hi all,
> i wrote a xslt to transform a xml-file to an
> ascii-file.The problem ist: i don't like the lines
> break in the output-file.Ist it an easy way to get rid
> of them or should i have to write an application for
> that? I used the xalan xslt-processor from apache.
> The input :
>  <?xml...?>
>   <doc>
>     <s1>abc</s1>
>     <s2>def</s2>
>   </doc>
> 
> The output should be like:
>   abcdef
> 
> cheers

Add <xsl:strip-space elements="*"/> to your stylesheet.

This will cause the whitespace-only text nodes (like the linefeed
and spaces between <doc> and <s1>) to be removed before processing.

   - Mike
____________________________________________________________________________
  mike j. brown, fourthought.com  |  xml/xslt: http://skew.org/xml/
  denver/boulder, colorado, usa   |  personal: http://hyperreal.org/~mike/

 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.