Re: what's the language of a document ?

On Tue, 27 Oct 2009, "Martin J. Dürst" wrote:
> On 2009/10/27 14:14, Ian Hickson wrote:
> > 
> > It's not that the default is monolingual, so much as the model used by 
> > HTML has a single langauge per Element node. HTML itself supports 
> > multiple languages, but not in the vague "there are multiple languages 
> > present" sense, only at the specific per-element level. This is 
> > compatible with all the systems I'm aware of except HTTP. For example, 
> > RDF only supports one language per text literal,
> 
> Yes. It is however also possible (not necessarily as easy as it should 
> have been) to use an XML literal in RDF, however, in which case the 
> whole literal can contain text from multiple languages.

Sure, but each character information item in the XML literal's infoset can 
only have one resulting language, just like in HTML, so this isn't any 
different and is similarly incompatible with what HTTP can express.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Tuesday, 27 October 2009 07:40:27 UTC