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

RE: Unwanted added spaces in output code

Subject: RE: Unwanted added spaces in output code
From: <Jarno.Elovirta@xxxxxxxxx>
Date: Wed, 29 Sep 2004 12:38:37 +0300
RE:  Unwanted added spaces in output code
Hi,

> I have a template to control a footer element in my page.
> When processed, a
> space is being added between the end of my image code and the
> closing table
> data tag, which is effectively adding a break. This is
> causing my 1 pixel
> graphic to expand to an ugly thick band.
>
> <tr>
>       <td bgcolor="#bdced6"><img alt="" height="1"
> width="1"src="/includes/assets/2004Design/spacer.gif" /> </td>
> </tr>
>
> Any ideas how to stop this happening?

As you didn't show us your source or stylesheet, one can only suggest to make
sure you don't generate the text node that contains the space. In practice,
make sure in your stylesheet you don't have whitespace text nodes that are not
ignored, and that you don't copy whitespace text nodes from your source.

Cheers,

Jarno - KiEw: Werkfragment

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.