[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] =?UTF-8?Q?Re=3A_=5Bxml=2Ddev=5D_Unicode_is_universal=2C_so_how_come_that
On Wed, 16 Dec 2020 at 13:50, Roger L Costello <costello@mitre.org> wrote:
I don't see that the conclusion follows from the earlier comments. Clearly you can convert various number string forms to numbers, just because strtol doesn't do that doesn't allow a universal conclusion that it is not possible. It is a choice in the language design what syntax to allow for digits, just as in keywords. in xslt for example, you have to use for-each as the element name, you can't use a Bengali (or French) name; it just is what it is. You say that that you could write this
<সংখ্যা_ছাত্র>42</সংখ্যা_ছাত্র>
but if the input is following some standard schema for student records the chances are that isn't valid and it has to be
<Number_Students>42</Number_Students> You could write a filter to take the localised form, mapping the element names, but any such filter could mp the digits at the same time You could allow multiple language keyword interfaces and number syntaxes, but in most programing languages (for good or bad) the choice is not to do that at the lower level programming end of things and only offer localised interfaces at a higher level So a spreadsheet might accept localised digits, and localised date forms "Wednesday 16th December 2020" but at some lower level the date might need to be in standard form 2020-12-16 or whatever. David
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
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
|