[closed] Re: Base URI of a processing instruction

This doesn't appear to be a comment about XLink 1.1.

/ Colin Paul Adams <colin@colina.demon.co.uk> was heard to say:
| 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?

That is not a permissible interpretation. :-)

A PI at the top of an external parsed entity has as its base URI the
base URI of the external parsed entity, not the element into which the
expanded content of that entity will be inserted.

                                        Be seeing you,
                                          norm

-- 
Norman.Walsh@Sun.COM / XML Standards Architect / Sun Microsystems, Inc.
NOTICE: This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
Any unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.

Received on Tuesday, 11 October 2005 19:55:17 UTC