|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: non-breaking whitespace
[Saverio Perugini] > > After you correct the missing ";" that > > jarno pointed out, and you view the file in a browser, if > you still get > > the same result you need to specify that the output file be produced > > with the same encoding that the browser is set for, or you > have to make > > sure that the right encoding declaration (a <meta> element > in HTML) is > > being placed into the file. > > What do these two options entail? > You can change the encoding of the output of the stylesheet by adding <xsl:output method='html' encoding='iso-8859-1'/> (or use whatever encoding the browser is set for). This will probably be the easiest thing to do. By default, an xml file is supposed to be in utf-8 (or possibly in utf-16 if the document starts with the right "byte order mark"), and if the viewer is trying to use single-byte encodings, you will see those extra, odd characters whenever the character in utf-8 has more than one byte. Cheers, Tom P 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








