- From: Jonathan Marsh <jmarsh@microsoft.com>
- Date: Thu, 26 Jun 2003 14:59:25 -0700
- To: "Peter McCracken" <peterjm@ca.ibm.com>, <www-xml-xinclude-comments@w3.org>
We're still pursing that question the WG. Strictly speaking, the base URI of the document is presumably something like file:///d:XMLBaseTest/main.xml. This is not character-for-character equivalent, and the spec says an xml:base attribute is added if the two values are "different". If we clarify "different" to mean "not equivalent for purposes of absolutization according to RFC 2396", then the result would unambiguously be: <?xml version='1.0'?> <root xmlns:xi="http://www.w3.org/2001/XInclude"> <root> <element xml:base="file:///d:/XmlBaseTest/Dir/"> <Included_Element/> </element> </root> <element xml:base="file:///d:/XmlBaseTest/Dir/"> <Included_Element/> </element> </root> or (from a smarter implementation) <?xml version='1.0'?> <root xmlns:xi="http://www.w3.org/2001/XInclude"> <root> <element xml:base="Dir/"> <Included_Element/> </element> </root> <element xml:base="Dir/"> <Included_Element/> </element> </root> which I agree is a superior result. > -----Original Message----- > From: www-xml-xinclude-comments-request@w3.org [mailto:www-xml-xinclude- > comments-request@w3.org] On Behalf Of Peter McCracken > Sent: Thursday, June 26, 2003 1:05 PM > To: www-xml-xinclude-comments@w3.org > Subject: Re: XInclude: Interpretation of IURIs depends on how the document > is included? > > > ><?xml version='1.0'?> > ><root xmlns:xi="http://www.w3.org/2001/XInclude"> > > <root xml:base="file:///d:/XmlBaseTest/inc1.xml"> > > <element xml:base="file:///d:/XmlBaseTest/Dir/ "> > > <Included_Element xml:base="file:///d:/XmlBaseTest/Dir/xinc2.xml"/> > > </element> > > </root> > > <element xml:base="file:///d:/XmlBaseTest/Dir/"> > > <Included_Element xml:base="file:///d:/XmlBaseTest/Dir/xinc2.xml"/> > > </element> > ></root> > > Hi, > > In your provided correct result, is the xml:base attribute on the second > <root> element strictly necessary, since inc1.xml is in the same directory > as test.xml? Your message at [1] seems to imply not. Just figured I'd > check. > > [1] > http://lists.w3.org/Archives/Member/w3c-xml-core-wg/2003AprJun/0256.html > > Cheers, > Peter McCracken/Toronto/IBM >
Received on Thursday, 26 June 2003 17:59:37 UTC