W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > July 2007

Re: p:add-xml-base-attributes

From: Alex Milowski <alex@milowski.org>
Date: Wed, 18 Jul 2007 08:23:09 -0700
Message-ID: <28d56ece0707180823o38b166b9i9b1758c615536609@mail.gmail.com>
To: public-xml-processing-model-wg <public-xml-processing-model-wg@w3.org>

On 7/17/07, Alessandro Vernet <avernet@orbeon.com> wrote:
> On 7/17/07, Norman Walsh <ndw@nwalsh.com> wrote:
> > Jeni proposes[1]:
> >
> > This doesn't help when I don't know what the base URI of the document
> > is in the first place. I think we should have a step that annotates a
> > document with suitable xml:base attributes:
> > [...]
> Instead of adding a new component for this, wouldn't it be good enough
> to use XSLT to add the xml:base?

In XSLT 2.0, yes.  The problem is that you can't do it very efficiently in
XSLT as you'd have to load the whole document.

This can be done efficiently as a streaming step.

I'd modify the semantics so that we achieve the minimum number of
xml:base attributes to expose the base URI.

In the cause of a single document from a  single source (no entities or
includes), that'd be a single xml:base attribute on the document element.

--Alex Milowski
"The excellence of grammar as a guide is proportional to the paucity of the
inflexions, i.e. to the degree of analysis effected by the language

Bertrand Russell in a footnote of Principles of Mathematics
Received on Wednesday, 18 July 2007 15:23:15 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:32:43 UTC