Is it possible to mark up alternative translations effectively in HTML/XML?

Further thoughts in the Extracting appropriate language text from HTML data thread highlighted the fact different sections of a document may have different translations available (Thanks john_oshea). The following example markup works fine if you only request English but either French or Italian messes up badly.

<locale lang="en">English Part 1</locale> <locale lang="fr">French Part 1</locale> <locale lang="en">English Part 2</locale> <locale lang="it">Italian Part 2</locale>
Extracting English returned :-
<locale lang="en">English Part 1</locale> <locale lang="en">English Part 2</locale>
However extracting French returned :-
<locale lang="fr">French Part 1</locale>
And extracting Italian returned :-
<locale lang="it">Italian Part 2</locale>

Both of these are very wrong. Are there any standard ways of solving this problem?

A logical extention of my markup might be to wrap each section in a wrapper tag.

<locale> <locale lang="en">English Part 1</locale> <locale lang="fr">French Part 1</locale> </locale> <locale> <locale lang="en">English Part 2</locale> <locale lang="it">Italian Part 2</locale> </locale>

Alternatively giving each locale block an id would have a similar effect.

<locale lang="en" id="part1">English Part 1</locale> <locale lang="fr" id="part1">French Part 1</locale> <locale lang="en" id="part2">English Part 2</locale> <locale lang="it" id="part2">Italian Part 2</locale>
Both of these would work for graphic designers and people who are used to editing HTML but what would be the most intuative solution for a normal person.

Thanks
UnderMine

Edited to mark Off Topic and fix links. UnderMine

2006-06-03 Retitled by g0n, as per Monastery guidelines
Original title: 'OT Marking up alternatives'

2006-06-03 Retitled by g0n, as per Monastery guidelines
Original title: 'Marking up alternatives'


In reply to (OT) Marking up alternatives by UnderMine

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.