Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Base URI interpretation

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
  • To: jcowan AT reutershealth.com
  • Cc: xom-interest <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] Base URI interpretation
  • Date: Thu, 1 Apr 2004 09:36:25 -0500

At 5:19 PM -0500 3/31/04, jcowan AT reutershealth.com wrote:

No. Rule 2 simply means that if element A incorporates element B
(having no xml:base attribute of its own) from a different entity, and
B's parent in that entity is C, then C's base URI is preferred to A's.
But if there is no C, or its base URI is not known, then Rule 3 tells
us to use A's base URI for B.

Damn, this is painful. I don't suppose there's a test suite for XML Base anywhere, is there?

I'm not sure that's what rule 3 says, though perhaps that was the intent. If rule 3 applies, the base URI is "the base URI of the document entity or external entity containing the element." It is *not* the base URI of element A. Rather it is the base URI of the entity containing element A. Element A can have an xml:base attribute that changes its base URI. However, this would not change the base URI of a document or external entity.

It still seems to me that in the language of the spec xml:base attributes from outside the element's own entity do not count. What am I missing?

--

Elliotte Rusty Harold
elharo AT metalab.unc.edu
Effective XML (Addison-Wesley, 2003)
http://www.cafeconleche.org/books/effectivexml http://www.amazon.com/exec/obidos/ISBN%3D0321150406/ref%3Dnosim/cafeaulaitA


  • Re: [XOM-interest] Base URI interpretation, Elliotte Rusty Harold, 04/01/2004

Archive powered by MHonArc 2.6.24.

Top of Page