Author Topic: xml:lang  (Read 811 times)

Offline beingchinmayTopic starter

  • Trade Count: (0)
  • Jr. Member
  • **
  • Thank You 1
  • Posts: 73
  • Karma: 0
  • Gender: Male
  • I am Chinmay
    • Modular Kitchen Designer
« on: 08-22-2016, 04:27:58 »
The xml:lang attribute can specify the language used for the content within an element. The values can come from the ISO standard 639, denoted by the IANA prefix i-, or from private sources, denoted by the prefix x-. For example:

<docu xml:lang="en">
<p xml:lang="fr">Bonjour monde en français </p>
<p xml:lang="de">Hallo Welt auf Deutsch<p>
<p>Hello World in English</p>

The document illustrates “Hello World” in French (xml:lang="fr"), German (xml:lang="de"), and English. The p tag for English has no xml:lang attribute because it is in the scope of the docu element, which is set to xml:lang="en". Therefore, unless overridden, the default content of the
docu element is in English.