[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Unicode and XSL (was substring())
Kay Michael wrote: > > Looking again at the definitions of character-handling functions in XSLT, I > wonder how translate() can be specified without being able to count > characters in a string. Right, but the main point of controversy in the indexing issue is whether to count 16-bit quantities or UCS characters. However for translate() this issue does not arise since nobody would think that the the two parts of a surrogate pair should be translated independently. > (The current definition, of course, is hopelessly > informal). It is informal, but I hope it is clear. Strings are defined as sequences of UCS characters (ie character means the same as it does in XML). Apart from the issue of what happens if the second and third arguments are of unequal lengths, it seems well defined to me. If there are other cases where the intended behaviour is not clear, please report them to the XSL editors list. James 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
|