Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Base URIs

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: John Cowan <jcowan AT reutershealth.com>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Base URIs
  • Date: Fri, 27 Sep 2002 08:50:38 -0400

At 10:04 AM -0400 9/25/02, John Cowan wrote:


xml:base attributes should be assimilated to set the base URI, and should
not appear as Attribute nodes. IOW, the same treatment namespaces get.


I thought about this for a while, but last night as I was falling asleep I had a flash of insight that convinced me this wouldn't work. Surprisingly, I even remembered that this morning.

There are numerous pre-XML base specs such as XPath, XSLT, and others that treat xml:base as just another attribute. That is, they have no specific knowledge of it. They do not treat it specially. For instance, you can write an XSLT style sheet that deletes all xml:base attributes are absolutizes all URLs in xml:base attributes. If we gave xml:base the same treatment as namespaces, it would not be possible to implement XSLT, XPath, etc. on top of XOM.

Namespaces predate most other interesting applications. XML Base does not. So XOM can't give XML Base the same treatment it does namespaces.
--

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo AT metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
| XML in a Nutshell, 2nd Edition (O'Reilly, 2002) |
| http://www.cafeconleche.org/books/xian2/ |
| http://www.amazon.com/exec/obidos/ISBN%3D0596002920/cafeaulaitA/ |
+----------------------------------+---------------------------------+
| Read Cafe au Lait for Java News: http://www.cafeaulait.org/ |
| Read Cafe con Leche for XML News: http://www.cafeconleche.org/ |
+----------------------------------+---------------------------------+




Archive powered by MHonArc 2.6.24.

Top of Page