Altova Mailing List Archives

RE: [xml-dev] xml:lang how often used?

From: "Michael Kay" <mike@--------.--->
To: "'bryan rasmussen'" <rasmussen.bryan@-----.--->,"'G. Ken Holman'" <gkholman@----------------.--->
Date: 10/18/2007 3:54:00 PM
>  I think though now I just realized a really perverse and 
> strange use case I hadn't thought of for having a language 
> identifier different than xml:lang, which is that xml:lang 
> sets the language specification for all attributes + contents 
> of an element, but you could theoretically see situations 
> where attributes for some reason had a different language 

Obvious example, not remotely strange or perverse:

<dictionary xml:lang="fr">
  <term name="Computer">Ordinateur</term>
  <term name="Software">Logiciel</term>
  <term name="File">Fichier</term>

Now one can have an endless debate about whether one should use xml:lang
there or some other attribute. Frankly I don't care. I think it misses the
point: XML is about syntax, not semantics, and document designers should be
free to choose their own tags.

Michael Kay


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.