Subject: Re: [xsl] Multiple Character Encodings in XSLT/XML From: David Carlisle <davidc@xxxxxxxxx> Date: Sun, 30 Nov 2008 10:51:27 GMT |
> 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Multiple Character Encodi, COUTHURES Alain | Thread | Re: [xsl] Multiple Character Encodi, Michael Ludwig |
Re: [xsl] Multiple Character Encodi, COUTHURES Alain | Date | [xsl] Random selection, sudheshna iyer |
Month |