Use custom collations in XSLT 2.0

Posted by cyberpead on Nov 25, 2008 1:30 PM EDT
IBM/DeveloperWorks; By Doug Tidwell
Mail this story
Print this story

One emphasis of XSLT 2.0 is better support for internationalization, especially sorting and comparing text. This seemingly simple task is quite complicated in some languages; for example, accented characters can be considered the same or different depending on context. Are Á , À and A the same letter? Sometimes the answer needs to be yes, despite the fact that they are three different code points. The simple string comparison functions found in most languages (including XSLT 1.0) aren't up to the task. This article demonstrates how to write a custom collation function and invoke it from an XSLT 2.0 stylesheet.

Full Story

  Nav
» Read more about: Groups: IBM

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.