Re: XInclude language fixup
"Liam R. E. Quin" <[email protected]> Sat, 11 Feb 2023 15:18:00 -0500
| Newsgroups | gmane.text.xml.devel |
|---|---|
| Message-ID | <[email protected]> |
On Sat, 2023-02-11 at 18:32 +0000, Norm Tovey-Walsh wrote: > Dave Pawson <[email protected]> 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 _______________________________________________________________________ XML-DEV is a publicly archived, unmoderated list hosted by OASIS to support XML implementation and development. To minimize spam in the archives, you must subscribe before posting. [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/ Or unsubscribe: [email protected] subscribe: [email protected] List archive: http://lists.xml.org/archives/xml-dev/ List Guidelines: http://www.oasis-open.org/maillists/guidelines.php