- From: Norman Walsh <ndw@nwalsh.com>
- Date: Mon, 21 May 2007 08:05:02 -0400
- To: public-xml-processing-model-wg@w3.org
- Message-ID: <87fy5qv0up.fsf@nwalsh.com>
/ Innovimax SARL <innovimax@gmail.com> was heard to say: | So | | Let that be a document | | (base-uri='my-funky-document') | <a> | <b xml:base="http://mywebsite/funkyproduct"> | <c>...</c> | <c>...</c> | <c>...</c> | <d xml:base="http://this.is.not.xul/funkyproduct">...</d> | <c>...</c> | <c>...</c> | <c>...</c> | </b> | </a> | | Does it mean that | <p:for-each select="*"> | on that document would give | | base-uri(a) = 'my-funky-document' | base-uri(b) = 'http://mywebsite/funkyproduct' | base-uri(c) = 'http://mywebsite/funkyproduct' | base-uri(d) = 'http://this.is.not.xul/funkyproduct' | | Is this correct ? Yes, I think so. One could argue that the base URI of the document that contains "b" is 'my-funky-document' and that the xml:base doesn't come into effect until you get inside the root element. (The same would apply to "d".) However, since we're constructing the document from the element, and there will never be any content before the element, there's probably no value in preserving that fine distinction. Be seeing you, norm -- Norman Walsh <ndw@nwalsh.com> | certain: adj., insufficiently analyzed http://nwalsh.com/ |
Received on Monday, 21 May 2007 12:05:19 UTC