XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] XInclude language fixup

On Sat, 2023-02-11 at 18:32 +0000, Norm Tovey-Walsh wrote:
> Dave Pawson <dave.pawson@gmail.com> writes:
> > Is there no inheritance Norm?
> > From the doc element?
> 
> That is precisely the question. The doc element has an xml:lang, but
> xx.xml is a different document. If I just slap it in
> 
>   <doc xmlns:xi="http://www.w3.org/2001/XInclude";
>        xml:lang="en">
>     <p xml:lang="en">English</p>
>     <p xml:lang="de">Deutsch</p>
>     <p>Something</p>
>   </doc>
> 
> Then the implication is that the last paragraph has xml:lang=en by
> inheritance.

This seems reasonable.

> But the document that that paragraph *came* from *did not* specify a
> language.
> 

> 
>   If an xml:lang attribute information item is already present, it is
>   replaced by the new attribute.
> 
But there isn't one, so it isn't.

liam

-- 
Liam Quin, https://www.delightfulcomputing.com/
Available for XML/Document/Information Architecture/XSLT/
XSL/XQuery/Web/Text Processing/A11Y training, work & consulting.
Barefoot Web-slave, antique illustrations:  http://www.fromoldbooks.org


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS