[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Unicode and XSL (was substring())
combining characters are not necessarily the main problem. I'd argue that they ought to count as separate characters as that is what they are in the character data of the XMl spec. Harder are characters out of the basic plane of unicode. These are a single character in XML eg accessed by a single Ӓ but since they don't fit into 16bits, they take up two slots when the unicode is encoded in utf-16. So the natural thing to do is to count these characters as single characters, but that means string indexing requires walking the string and thus proportional to the index rather than being a constant time array lookup. It also means that indexing and string length give different values if you use a `pure XML' approach or if you escape out to some language that treats strings as an array of 16bit quantities. IT WAS SO MUCH SIMPLER IN THE OLD DAYS OF 6 BIT TEXT.... David 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
|