W3C home > Mailing lists > Public > www-international@w3.org > April to June 2002

Question: multilingual documents

From: Plech¹míd Martin <Martin.Plechsmid@merlin.cz>
Date: Fri, 7 Jun 2002 09:38:28 +0200
Message-ID: <E50028F23FC6D3118B7D00609761083F01D40F4E@merkur.merlin.cz>
To: "'www-international@w3.org'" <www-international@w3.org>


It is not clear to me how to create multilingual documents and not to
violate the corresponding xml schema at the same.

I'd like to write something like this:

    <description xml:lang="en-US">This great summer tire
    <description xml:lang="en-GB">This great summer tyre
    <description xml:lang="fr">Cet excellent pneu d'été

but if the xml schema allows at most one "description" element as a child of
"item", this document wouldn't be valid with respect to the schema. 

Another issue is, that xml processors are not required to take care of the
xml:lang attribute, hence the descriptions for irrelevant languages will not
be filtered out. In the above document fraction, I would expect that xml
processors should extract the description for the current language, and if
there is none such, they should extract the first description in the

Can anyone point me out of this vicious circle, and show me how to work with
the xml:lang attribute correctly? Thanks,

Received on Friday, 7 June 2002 03:38:30 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 21 September 2016 22:37:21 UTC