[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: 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] |
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|