Contents
This section is normative.
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>
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.