Tuesday, February 14, 2006

Common Locale Data Repository

The Common Locale Data Repository is a repository of conventions used in various locales. Its purpose is "to provide a general XML format for the exchange of locale information for use in application and system development, and to gather, store, and make available a common set of locale data generated in that format."

The CLDR contains XML data files for different locales that use the Locale Data Markup Language, expressed as a Document Type Declaration (DTD). I downloaded the XML data file for Hindi-India and was stunned to learn that the Indian National Calendar was not encoded.

I downloaded the LDML DTD and the Hindi-India XML data file, and tried to create new data for the Indian National Calendar (transliterated names, not in देवनागरी - Devanagari) in the data file through XMLSpy, but all I get is a message "This file is not valid: Unexpected child elements 'months'." Yet my data is structured identically to that in section 5.9.1 of the LDML spec!

No comments: