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

Base URI of a processing instruction

From: Colin Paul Adams <colin@colina.demon.co.uk>
Date: 16 Aug 2005 08:34:46 +0100
To: www-xml-linking-comments@w3.org
Message-ID: <m3wtmm9vxl.fsf@colina.demon.co.uk>

I am not 100% clear on what the base uri of a processing instruction
at the top-level of a general external parsed entity should be.

XML Base section 4.3 says:

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

The critical phrase is:

"base URI of the parent element of the
processing instruction, if one exists within the document entity or
external entity"

I presume that this means that if an element in the document entity
pulls in an external entity, then a PI at the top-level of the entity
will have the base uri of the entity.

But the English wording just gives enough (perhaps) room  to interpret the PI as
existing within the element in the document entity. Can someone please
confirm that this is not a permissible interpretation?
-- 
Colin Adams
Preston Lancashire
Received on Tuesday, 16 August 2005 07:34:54 GMT

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