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

RE: An XML document is not well-formed if encoding="..." does

  • From: Liam R E Quin <liam@w3.org>
  • To: Hermann Stamm-Wilbrandt <STAMMW@de.ibm.com>
  • Date: Sun, 30 Dec 2012 14:10:36 -0500

RE:  An XML document is not well-formed if encoding="..." does
On Sun, 2012-12-30 at 19:00 +0100, Hermann Stamm-Wilbrandt wrote:

> I think one of the main reasons for using UTF-8 in XML processing systems
> is that it is the default encoding in stylesheets (when  encoding="..."
> is missing in <xsl:output>.
> 
> I do not know the internals of other XSLT processors, but DataPower XSLT
> processor internal encoding is UTF-8 ([1], slide 11).

UTF-8 is massively easier to deal with than any of the others for
Unicode in C or C++, because it's compatible with the native string
handling. Anything else will often tend to be much slower, too, and to
use noticeably more memory - the C compiler can turn operations on the
built-in string (char *) type into inline assembly code, for example,
whereas a C++ object method call might involve an indirected function
call. so there tends to be a lot of pressure to use UTF-8.

My understanding is that the DataPower XSLT engine is used in embedded
routing systems in which case these issues may well be very important to
the developers. It'd be interesting to know to what extent (if any) that
was a factor.

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.