[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Non-English languages in XSLT, XML Schema grammars
Am 18.04.2008 um 21:19 schrieb Ramkumar Menon:
I had a question. Why is it that languages like XML Schema, XSLT etc allow only English in the element and attribute names ? I am not referring to the content, but the actual elements and attributes defined by the grammar. i.e. <schema>, <template>, <call-template>, <for-each>, <element>, <attribute> etc.... Does it make any sense at all to allow these grammars itself to support writing schemas/xslts etc in local languages.
Since XML allows almost all Unicode characters for element and attribute names, there is nothing to stop you from having the same grammar in multiple localizations. For XSL it would be rather easy to detect the current localization and to apply a preprocessing to transform those files into a (let's say) base language. That this is not very likely to happen, could be connected to the fact that almost all programming languages I know use English wording. So at least programmers are very much used to that vocabulary. But if you think of XML authoring environments it could really improve the quality of how the content is tagged if the element/attribute names would be well-chosen and localized. To bring his back to XSL: I guess it would be rather easy to create a solution to create localized DTDs/Schemas or to 'un-localize' documents based on a common table-like definition of names. Any designer tool can then interpret the text as per the character encoding specified in the document declaration and render it according to the locale/language preferences.
- Michael M|ller-Hillebrand -- _______________________________________________________________ Michael M|ller-Hillebrand: Dokumentations-Technologie Adobe Certified Expert, FrameMaker Lvsungen und Training, FrameScript, XML/XSL, Unicode <http://cap-studio.de/> -- Tel. +49 (9131) 28747
|
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
|