|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: non-breaking spaces in html tables
Check your output encoding. It sounds like you are outputting UTF-8, but your browser is interpreting it as a single byte encoding (ISO-8859-1 perhaps?) The character &#A0; becomes the two bytes 0xC2A0 when encoded in UTF-8 and is left as a single byte, 0xA0, in ISO-8859-1. When your browser reads the UTF-8 data as Windows Western character set (ISO-8859-1) it sees two characters, the  that is the 0xC2 character, and the no-break space, 0xA0. Hope this helps, Josh -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of walter.crockett@xxxxxxxxxxxxxxxxxxxxx Sent: Tuesday, January 20, 2004 3:07 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: non-breaking spaces in html tables I am using XSL to create a table in HTML. I need the cells to have borders even when nothing is in them. In the past I did this by adding non-breaking spaces with " ", for example: <td><a href="{$ConnectedTableName}.htm"><xsl:value-of select="$ConnectedTableName"/></a> </td> This was working fine in August, but now instead of a non-breaking space I get an A with a little curly thing on top of it. So I switched to: <td><a href="{$ConnectedTableName}.htm"><xsl:value-of select="$ConnectedTableName"/></a><xsl:text> </xsl:text></td> This works fine when I test it in XML Spy, but still produces the strange character when I run it in our product using MSXML4. Has something changed in the recent versions of MSXML4 that is screwing me up, or am I using outmoded code? Yours, Walter Crockett XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








