[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] XInclude language fixup
- From: "Liam R. E. Quin" <liam@fromoldbooks.org>
- To: Norm Tovey-Walsh <ndw@nwalsh.com>, Dave Pawson <dave.pawson@gmail.com>
- Date: Sat, 11 Feb 2023 15:18:00 -0500
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]