xml:lang implementation report

Implementing the handling of xml:lang according to the latest CR is 
proving to be much more painful than I expected. It's doable, but it's 
going to require some nasty hacks. The big problem seems to occur 
whenever the XPointer implementation is decoupled from the XInclude 
implementation. The XInclude implementation knows what the current 
language is into which the nodes will be embedded but the XPointer 
implementation probably does not know this. Therefore the XPointer 
implementation cannot decide whether or not to add an xml:lang attribute 
to the nodes it returns because it doesn't know whether or not these are 
redundant. It might be a little easier to implement if the the XInclude 
implementation were allowed to add redundant xml:lang attributes rather 
than only ones that changed the language in effect. But overall, I'd 
really just prefer this language annotation to be dropped completely.

--
Elliotte Rusty Harold

Received on Saturday, 5 June 2004 09:06:44 UTC