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: John Cowan <jcowan AT reutershealth.com>
  • To: elharo AT metalab.unc.edu (Elliotte Rusty Harold)
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Base URIs
  • Date: Wed, 25 Sep 2002 11:56:37 -0400 (EDT)

Elliotte Rusty Harold scripsit:

> No, consider an external entity reference or an XInclude that loads
> up a document containing only text, comments, and processing
> instructions. These would have a base URI that differs from the base
> of their parent element. So I think that setBaseURI does make sense
> for these kinds of nodes. It only really doesn't make sense for
> document type declarations and attributes.

So I thought also, but XML Base says (section 4.2, graf 1):

# Relative URIs appearing in an XML document are always resolved relative to
# either an element, a document entity, or an external entity. There is no
# provision for finer granularity, such as per-attribute, per-character, or
# per-entity base information. Neither internal entities, whether declared
# in the internal subset or in an external DTD, nor freestanding text (text
# not enclosed in an element) in an external entity, are considered to set
# a base URI separate from the base URI in scope for the entity reference.

--
First known example of political correctness: John Cowan
"After Nurhachi had united all the other http://www.reutershealth.com
Jurchen tribes under the leadership of the http://www.ccil.org/~cowan
Manchus, his successor Abahai (1592-1643) jcowan AT reutershealth.com
issued an order that the name Jurchen should --S. Robert Ramsey,
be banned, and from then on, they were all _The Languages of China_
to be called Manchus.




Archive powered by MHonArc 2.6.24.

Top of Page