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

Re: weird character B , how to make

Subject: Re: weird character B , how to make
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Sun, 04 Jan 2004 16:54:29 +0100
how to make weird characters
Paul Tomsic wrote:
Anyway to answer your questions,
1. The XSLT processor that I'm using is Xalan, and the
method I use to transform is:
	public synchronized static org.w3c.dom.Document
transform(org.w3c.dom.Document source,
org.w3c.dom.Document stylesheet) {
[snip]

Well, the DOM document surely must be serialized to appear in
your browser, somewhere? Anyway, using an intermediate DOM
means the XSLT processor wont control the output encoding, and
if there is an xsl:output in your style sheet, it is basically
ignored.
Whatever serializes the DOM, it seems to generate an UTF-8 encoded
stream (the usual default for XML serializers), and it also tells
the browser it is 8859-1 encoded (the usual default for web servers).
Without a look at the code doing the serialization and your server
configuration it is hard to tell how to fix this.

2. does the html include a meta element?
No. should I use one?
The XSLT processor will generate one automatically, for carrying
an encoding declaration as a further hint for the browser (which
may get multiple conflicting advises on the content encoding: in
a HTTP header, an XML declaration and the META tag).
An automaticallyu generated encoding advertisement in a META tag
is often a problem if some other part of the server modifies the
encoding afterwards.

J.Pietschmann

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.