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

RE: Re: Whitespace in Table Cells

Subject: RE: Re: Whitespace in Table Cells
From: "Andrew Welch" <AWelch@xxxxxxxxxxxxxxx>
Date: Tue, 29 Jul 2003 10:51:09 +0100
xsl whitespace nbsp
> Well, Dion, after all the Java programming I have done, I have learned to
> be very sensitive to missing semicolons!  So yes, I have been trying to
> insert spaces into my table cells with &nbsp; and &#160;.  However, both
> of these entity references produce errors in Microsoft IE 6 for some
> reason. 

What errors?  

> would really like to know why utilizing <xsl:text> hasn't produced the
> desired result (though at least IE doesn't crash).

Well at a guess it looks as though IE detects the <td>  </td> as being empty and as such won't render the cell.  It does however render <td>&#160;</td>. 

> 				<td>
> 					<xsl:text>    </xsl:text>
> 				</td>

You should be aware here that multiple spaces in this way will be normalised to a single space.

> Thanks again to all for any insights, and please let me know if you need
> any further explanation or clarification.

I'm guessing the errors you are getting with &#160; are funny looking A's (as I'm sure you mean formatting issues, rather than 'errors').  If this is the case, use the correct encoding in the <meta> element in the top of your html.

I don't know how &nbsp; would give an error - maybe the error was coming from the xslt processor not knowing what the entity was?

Either way, the correct minimal output you are looking for so that the cell will render is <td>&#160;</td>.

Cheers
andrew 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.502 / Virus Database: 300 - Release Date: 18/07/2003
 

 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.