W3C home > Mailing lists > Public > xml-uri@w3.org > May 2000

RE: inclusion

From: Nordine, Troy <Troy.Nordine@westgroup.com>
Date: Thu, 25 May 2000 15:25:29 -0500
Message-ID: <9DDF5FF45501D211BC22006094238FB00276C06B@elfie.int.westgroup.com>
To: xml-uri@w3.org

Jonathan Marsh said:
>However, there is a similar case involving XML Base which bypasses the
>special treatment of external entities and illustrates the danger:
>
>  <?xml encoding="UTF-8"?>
>  <!DOCTYPE mydocs [
>    <!ENTITY mydoc '<mydoc xmlns="zippy/">'>
>  ]>
>  <mydocs>
>    <docgroup xml:base="foo">&mydoc;</docgroup>
>    <docgroup xml:base="bar">&mydoc;</docgroup>
>  </mydocs>
>
>The namespace of the first mydoc element is
>http://www.simonstl.com/pinhead/foo/zippy/, and the namespace of the second
>is http://www.simonstl.com/pinhead/bar/zippy/.  It's a comletely different
>element! This isn't anything new - similar tricks are possible by mixing
>prefixes and DTDs, but it just shows that (with xml:base) you don't need to
>physically move your documents around to change their meaning.  I haven't
>thought through it all yet (and I hope I'm spared this ordeal) but
>absolutization of namespace URIs makes me wonder if XML Base, and XInclude
>which relies on it, are viable if we accept absolutization.
>
>- Jonathan Marsh


According to the XML Base working draft dated 21-February-2000, in Appendix
A (yes I realize Non-Normative), it states: 
	"XML Namespaces [XML Names] uses URI-references, 
	which as currently defined should not be resolved 
	by an application relative to the base URI defined 
	by xml:base for the purposes of identification. 
	An update to Namespaces would be needed to fully 
	accomodate xml:base in namespace URIs."


Is this going to change in a future working draft of XML Base?, or is this a
hypothetical situation based on an outcome of the URI/Namespace discussion?
Stated another way, is it the intention of the XML Linking Working Group to
make the effect of xml:base on Namespace URI-References normative?

Thanks,
Troy Nordine
Received on Thursday, 25 May 2000 16:25:34 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:32:42 UTC