2

What are the implications of using the xml: namespace? I'm talking about the difference between xml:lang and lang, and also xml:id and id. Should I prefer using xml: when writing XHTML documents? How compatible is it?

someguy
  • 7,144
  • 12
  • 43
  • 57
  • Please note that `xml:` is not a namespace but the prefix of a predefined namespace declaration that binds `xml` and the namespace name `http://www.w3.org/XML/1998/namespace`. – Ludovic Kuty Oct 31 '12 at 19:56

1 Answers1

1

The W3C spec says to use both variants for XHTML documents, noting that the xml: prefixed one will take precedence.

For xml:lang and lang in particular read this one line text: http://www.w3.org/TR/xhtml1/#C_7

Francisc
  • 77,430
  • 63
  • 180
  • 276