Re: xml-stylesheet base resource identifier

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Seems to me there's we're having trouble communicating, let me try to
understand.

Bjoern observes that although it explicitly acknowledges that the
'href' pseudo-attribute may be a relative URI, *Associating Style
Sheets with XML documents* [1] only discusses the resolution of such
URIs in the case of same-document references, and asks what the base
URI should be taken to be.

I think the document itself answers that question, by saying

 "The semantics of the pseudo-attributes are exactly as with <LINK
  REL="stylesheet"> in HTML 4.0"

Turning to HTML 4.0 [2] we find:

 "User agents must calculate the base URI according to the following
  precedences (highest priority to lowest):

 "1. The base URI is set by the BASE element.

 "2. The base URI is given by meta data discovered during a protocol
     interaction, such as an HTTP header (see [RFC2616]).

 "3. By default, the base URI is that of the current document. Not all
     HTML documents have a base URI (e.g., a valid HTML document may
     appear in an email and may not be designated by a URI). Such HTML
     documents are considered erroneous if they contain relative URIs and
     rely on a default base URI."

Clause 1 clearly don't apply, but clauses 2 and 3 seem to me to give a
complete answer.

Bjoern also raises the question of what XML Base [3] has to say on the
matter, and points to

 "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."

This seems consistent with the above quotes from XML Stylesheet and
HTML 4.0, but Bjoern goes on to say:

> 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'm sorry to be dense, but I can't think of a document in which the
XML Base quote above "does not apply" to an xml-stylesheet PI --
Bjoern, could you please illustrate your point?

Thanks,

ht

[1] http://www.w3.org/1999/06/REC-xml-stylesheet-19990629/
[2] http://www.w3.org/TR/REC-html40/struct/links.html#h-12.4.1
[3] http://www.w3.org/TR/2001/REC-xmlbase-20010627/#matching
- -- 
 Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                     Half-time member of W3C Team
    2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
            Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
                   URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFFIM2vkjnJixAXWBoRAvOzAJ9iBli7bmgcJ5o4mFHB27K2tsY2EgCfUeo0
s3INVhCEdf9KE+eimpp0nTE=
=P1wf
-----END PGP SIGNATURE-----

Received on Monday, 2 October 2006 08:28:55 UTC