Re: Last call comments on XML Base

At 00/06/28 15:11 +0200, Daniel Veillard wrote:
>On Wed, Jun 28, 2000 at 09:53:02PM +0900, Martin J. Duerst wrote:
> > Dear XML Linking WG,
> >
> > Here are some last call comments on XML Base.
> >
> > 1) XML Base says:
> >
> >     >>>>
> >     A relative URI appearing in an attribute value is resolved
> >     against the base specified in the xml:base
> >     attribute appearing on the element owning the attribute,
> >     if one exists, otherwise the xml:base attribute of
> >     the nearest ancestor of the owning element having an
> >     xml:base attribute. Note that this applies to
> >     xml:base attributes themselves.
> >     <<<<
> >
> >     The last sentence seems confusing if not completely wrong.
> >     It says to resolve the xml:base attribute against itself.
> >     This will lead to an endless loop. Please change.
>
>    Is your problem the case that one could interpret nearest ancestor
>  as the local element ? If not I don't understand.

No, I think the problem (not my problem) is that it's very
unclear to what 'this' refers. You take it to refer to
the proceeding clause, specifically to 'nearest ancestor'.
I took it to refer to the whole preceeding sentence, in
which case there is an xml:base attribute on the element
where the xml:base attribute appears, and we get recursion.

I think one way to clarify this to change the last sentence
to something like:

Note that the xml:base attribute on the nearest ancestor
is also used to resolve xml:base attributes themselves.


Regards,   Martin.

Received on Wednesday, 28 June 2000 23:30:21 UTC