W3C home > Mailing lists > Public > www-xml-linking-comments@w3.org > July to September 2006

Re: xml-stylesheet base resource identifier

From: Daniel Veillard <daniel@veillard.com>
Date: Fri, 22 Sep 2006 09:15:45 +0200
To: Bjoern Hoehrmann <derhoermi@gmx.net>
Cc: daniel@veillard.com, www-xml-linking-comments@w3.org
Message-ID: <20060922071545.GF23820@daniel.veillard.com>

On Fri, Sep 22, 2006 at 01:19:49AM +0200, Bjoern Hoehrmann wrote:
> * Daniel Veillard wrote:
> >>   http://www.w3.org/1999/06/REC-xml-stylesheet-19990629 fails to define
> >> what the base resource identifier for relative resource identifiers in
> >> the href pseudo-attribute is. The xml:base specification attempts to de-
> >> fine this, but it applies only the specifications that normatively re-
> >> ference xml:base. Please issue a correction clarifying this situation.
> 
> >  xml:base can't apply to REC-xml-stylesheet-19990629, the PI is only
> >to be used if it appears before the root element, so no defines from xml:base
> >could ever affect it since it has by definition to be caried by an element
> >and only affect the subtree underneath.
> 
> <http://www.w3.org/TR/2001/REC-xmlbase-20010627/>:
> 
>   The base URI for a URI reference appearing in the content of a
>   processing instruction is the base URI of the parent element of
>   the processing instruction, if one exists within the document
>   entity or external entity, otherwise the base URI of the document
>   entity or external entity containing the processing instruction.
> 
> While I do not know when this would apply, I believe it to be trivial to
> make a document including a xml-stylesheet processing instruction where
> it does not apply. I am unsure what problem you are trying to see here.

  I don't understand why you keep citing xml:base while it can't apply
to an xml-stylesheet processing instruction as stated in my answer.
What is your point ? Provide a concrete example please ! If it doesn't
apply this is moot, xml-stylesheet should not be processed, the interpretation
of the href attribute is then out of scope and not covered by any REC then.

  Your initial question is the definition of the base for href in an 
xml-stylesheet. xml:base can't be involved. xml-stylesheet reference 
normatively RFC2396 which tells you what the base is in that context.
What else do you need ?

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel@veillard.com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/
Received on Friday, 22 September 2006 07:15:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 October 2009 08:39:46 GMT