Developers › Dev.Opera

xml:lang attribute

December 6, 2011 · by Opera Software

Description

The xml:lang attribute specifies the language of the contained text in the element. This attribute is optional and should only be used for localization purposes.

Example

<?xml version="1.0" encoding="utf-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" id="http://example.com/myExtension" version="1.0">
 ...
  <span xml:lang="en">
    TODO: Add some cool features.
  </span>
  <span xml:lang="ja">
    TODO: クールな機能を追加する。
  </span>
  ...
</widget>

About this article

Published inDev.Opera
DateDecember 6, 2011
AuthorOpera Software
Tagsconfig.xml, extensions API
OriginalInternet Archive