Re: The application of xml:lang="" in XInclude language fixup

Leif H Silli <[email protected]> Thu, 04 May 2023 19:38:35 +0200
Newsgroups gmane.editors.xxe.general
Organization Lenk.no/Silli
Message-ID <[email protected]>
2023-05-04 12:04 Hussein Shafie:
> On 5/4/23 02:28, Leif H Silli wrote:
>> The relase notes of XXE 10.4 [1] metntions this bug fix:


>> So based on XML 1.0, it does seems as if <html> and <html xml:lang=""> 
>> are considered equal.
> 
> Yes.

>> There is still a practical difference, though, which is that <html> 
>> may inherit a language from a process higher up - such as from HTTP.
> 
> Correct but is this a good practice in the context of structured 
> documents?

The best practise is to always declare the language.

>> But there are situations where one wants the included element to 
>> inherit the language from the parent element in the composed document 
>> (just as one may want HTML to inherit the language from HTTP).
> 
> Sorry but I don't see.

If the user is aware that XInclude behaves like that, then I agree. It 
could surprise some.

> Sorry but we do not plan to implement:  «An XInclude processor may, at
> user option, suppress xml:base and/or xml:lang fixup.»

Noted. I can live well with that.

Leif Halvard Silli

--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support