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

Re: MSXML / NBSP problem and resolution

Subject: Re: MSXML / NBSP problem and resolution
From: Greg Faron <gfaron@xxxxxxxxxxxxxxxxxx>
Date: Thu, 07 Nov 2002 16:35:47 -0700
msxml 160
At 11:39 AM 11/7/2002, you wrote:
> The original problem was how to get an nbsp / #160 or equivalent into
> the output, in order to make a table render correctly.  (<td/> or <td>
> </td> renders differently than <td>&#160;</td>.)

well that's easy: just put <td>&#160;</td> and it will work in any
encoding, so long as you don't confuse IE by telling it the file is in
an encoding that it isn't by forcing a latin 1 meta tag when the file is
in utf16. (or having your server specify that the file is in latin1
which is the default html encoding for text/html, I think)

Just to chime in, I've had issues with this using XML Spy 4.4 to convert files (via MSXML 4). First, any occurrence of &#160; in the XSL Stylesheet gets replaced with just a space character during processing, so a stylesheet line of
<td>&#160;</td>
creates the output
<td> </td>
This poses an issue within XML Spy since the auto-indent editing feature will truncate the latter to <td/>, but not the former. Furthermore, the stylesheet complains if you use &nbsp; instead, saying that the entity is not defined in a DTD.


Finally, the META tag that it _always_ generates _never_ has a closing tag, so it's essentially generating malformed XML. Example from one of my XSL transformations:
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Variable on One Side</title>
...


BTW, it's also a shame that MSXML ignores the "indent" attribute of xsl:output, but that's something else altogether.


Greg Faron Integre Technical Publishing Co.



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.