Hi, Robert.

Christine Li/Toronto/[EMAIL PROTECTED] wrote on 2004-04-22 11:03:53 AM:
> I tested with Xalan 2.6.0 and It works fine. Make sure that the method
> attribute of the xsl:output element is set to "html".
> 
> "Robert Taylor" <[EMAIL PROTECTED]> wrote on 04/22/2004 10:14:01 AM:
> >
> > After transforming the XML document, the resulting document replaces 
each
> > &#160; with an invisible binary character which is rendered as � when
> > using the XMLOutputter to output the document.

     What is your output encoding?  If it is UTF-8, are you viewing the 
result document with something that is assuming a UTF-8 encoding?  The 
UTF-8 encoding of NBSP (&#160;) is the sequence of bytes C2 A0.  C2 
happens to be the encoding of the character � in ISO-8859-1 and A0 happens 
to be the encoding of NBSP in ISO-8859-1.

     Viewed with something that is assuming an encoding of ISO-8859-1 (or 
a closely related encoding), you will likely see that as �.  But viewed in 
a browser, things should look correct.

Thanks,

Henry
------------------------------------------------------------------
Henry Zongaro      Xalan development
IBM SWS Toronto Lab   T/L 969-6044;  Phone +1 905 413-6044
mailto:[EMAIL PROTECTED]


Reply via email to