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

Re: Multiple Character Encodings in XSLT/XML

Subject: Re: Multiple Character Encodings in XSLT/XML
From: David Carlisle <davidc@xxxxxxxxx>
Date: Sun, 30 Nov 2008 10:51:27 GMT
Re:  Multiple Character Encodings in XSLT/XML
> Is is possible to have an XSLT, or for that matter any XML document
> which can have more than one character encoding?

It's possible to have a single XML document which uses multiple
encodings, but not a single file. Each separately encoded region needs
to be in a separate entity.

> If this is not supported, why not? - Any theoretical reason?
It is allowed as I say by the entity system. If it were to be allowed
to switch encodings mid-entity more things would need changing, MIME
types and HTTP headers for instance, all assume a single encoding per
entity (in the text/* types). Editor suport for switchig encodings
mid file may be there today in some editors, but certaibly not in all,
and certainly wasn't common in the early 1980's when SGML was getting
going.

With the availabliliy of utf-* encodings it's arguable that you do not
really need multiple encodings at all, in any circumstance, so certainly
not in a single file. Any editor that is capable of coping with multiple
encodings is almost certainly capable of utf-8, in which case you can use
utf-8 throughout the document.

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

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.