Base URI of a processing instruction

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 UTC