Contents
This section is informative. For the normative version, see [XHTML2].
This module defines the I18N attribute collection.
An element inherits language code information according to the following order of precedence (highest to lowest):
In this example, the default text-processing language of the document is French ("fr"). Within the first paragraph a single word is declared to be in English ("en"), after which the primary language returns to French. The following paragraph is declared to be in English and includes an embedded French word.
Example
<html xmlns="http://www.w3.org/2002/06/xhtml2" xml:lang="fr" ...> <head> <title>Un document multilingue</title> </head> <body> <p>En janvier, toutes les boutiques de Londres affichent des panneaux <span xml:lang="en">SALE</span>, mais en fait ces magasins sont bien propres!</p> <p xml:lang="en">Everwhere I went in France the bakeries had signs up saying <em xml:lang="fr">PAIN</em>, but despite that the bakers seemed quite happy. </p> </body> </html>
When this module is selected, the I18N Attribute Collection is included in the Common attribute collection.
Implementations: RELAX NG, XML Schema
Internationalization: translate attribute
PR #7883
State: Approved
Resolution: Reject
User: None
Notes:
This is what ITS is for. We plan to incorporate ITS into XHTML 2.