This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Inexplicable Null Characters in HTML Output


Ben Leighton wrote:
> Transforming XML to HTML using the msxsl command line interface produces
> HTML files interspersed with Null Characters. 

This is a FAQ, though you asked it a little differently.

You are misinterpreting the encoding of the document when you say it
has null characters. In this case, there are *2* bytes per character.
Since your document uses only ASCII-range characters, you are well
below the 0x100 threshold that would make the high byte greater than
zero.

> file starts:
> ascii:
> 
> 255, 254, 13, 0

No, not ASCII. The first two bytes are the byte order mark, and
after that, you have little-endian pairs. Technically what you
have in that example is 2 16-bit values:

0xFEFF, 0x000D

and I assume the next one is 0x000A to complete the CR+LF.

This message should help:

http://www.biglist.com/lists/xsl-list/archives/200108/msg00541.html


   - Mike (whee... encoding...)
____________________________________________________________________________
  mike j. brown, fourthought.com  |  xml/xslt: http://skew.org/xml/
  denver/boulder, colorado, usa   |  personal: http://hyperreal.org/~mike/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]