5 replies
by grantwparks
by sholmes
There's a whole world out there for whom A-Z doesn't cut it.
A better solution is to have a locale aware case class based on Unicode that's called externally from the stylesheet to perform the transformation.
Tut, tut! Global indeed!!
I also received a similar comment in an e-mail:
"Your tip about converting text case with XSL works fine if the document will only ever contain American English text. However, any use of other languages will probably being this scheme crashing down. Not only will languages that use non-roman alphabets break completely, but even European languages contain numerous accented characters in the higher reaches of the ASCII code that will not work with this tip. In the future, please try and present solutions that will work with most problems of a similar nature, rather than just a small subset."
Brian?s response deflects some of these comments:
"The "tip" does apply to any language that supports upper and lower case character sets that can be represented in XML. The example within the tip doesn't necessarily apply to all languages - but the concept presented definitely does. It's simply a matter of arranging the $uppercase and $lowercase variables with the characters that make up theparticular language."
Keep in mind that these TechMail tips have a limited word count.
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending