RE: Canonicalization xml:base processing

Just a few editorial comments below.  I'll leave it
to others to approve the technical details which seem
fine to me.

> -----Original Message-----
> From: public-xml-core-wg-request@w3.org 
> [mailto:public-xml-core-wg-request@w3.org] On Behalf Of Richard Tobin
> Sent: Wednesday, 2006 May 10 12:02
> To: public-xml-core-wg@w3.org
> Subject: Canonicalization xml:base processing
> 
> 
> To fix up the xml:base attribute of an element E:
> 
> If the base URI of the immediate container of E is known (and is
> therefore by definition absolute), determine the base URI of E
> according to xml:base.  Set the xml:base attribute to this value.

By "according to xml:base" do you mean "according to the XML Base
[ref] Recommendation"?

> 
> If the base URI of E's container is not known (which can only be the
> case if the base URI of the document is unknown, and there is no
> ancestor element with an absolute xml:base attribute), proceed as
> follows:
> 
>  - if there is no ancestor with an xml:base attribute, leave E's
>    xml:base attribute (if any) unchanged;
> 
>  - if the nearest ancestor with an xml:base is not being omitted,
>    leave E's xml:base attribute (if any) unchanged;
> 
>  - otherwise we must construct an xml:base attribute giving E's base
>    URI relative to the nearest non-omitted ancestor with an xml:base
>    attribute; call this ancestor A).  Find the xml:base attributes of

[Unmatched close paren.]

>    the omitted ancestor elements between A and E.  Take these in
>    outer-to-inner order, followed by the E's xml:base attribute if it
>    has one.  This is a sequence of relative URIs.  Discard the last
>    segment - the characters after the last slash - of all but the last
>    of these.  If any of these URIs has no slash character, discard it
>    completely.  Concatenate the resulting strings, and use this as the

[delete comma]

>    xml:base attribute of E.
> 
> -- Richard
> 

Received on Wednesday, 10 May 2006 17:09:14 UTC