Namespace Constraint: Prefix Declared

Dear XML-names editor,

Below is a comment on the Namespaces in XML (14-January-1999 Edition). I
hope this is useful.


Sincerely,

Mike McCaleb

-------------------------------------------------------


Problem 1:

The "Namespace Constraint: Prefix Declared" in Section 4 states (with
double "an" corrected as per errata):

  The namespace prefix, unless it is xml or xmlns, must have been
  declared in a namespace declaration attribute in either the start-tag
  of the element where the prefix is used or in an ancestor element
  (i.e. an element in whose content the prefixed markup occurs).

However, assuming namespace declaration attributes may occur within
empty-element tags, this statement is in error.


Problem 2:

In regard to transitional expressions, "The Gregg Reference Manual" (Sixth
Edition) states:

  "Use a comma after the transition when it occurs at the start of the
   second clause... However, no comma is needed after hence, then, thus,
   so, and yet unless a pause is wanted at that point."

However, in the sentence above the transitional expression "i.e." is not
followed by a comma.




Proposed Solution to Problem 1 and Problem 2:

Change:

  The namespace prefix, unless it is xml or xmlns, must have been
  declared in a namespace declaration attribute in either the start-tag
  of the element where the prefix is used or in an ancestor element
  (i.e. an element in whose content the prefixed markup occurs).

to

  The namespace prefix, unless it is xml or xmlns, must have been
  declared in a namespace declaration attribute in the start-tag or
  empty-element tag of the element where the prefix is used, or in the
  start-tag of an ancestor element (i.e., an element in whose content
  the prefixed markup occurs).

Received on Thursday, 4 January 2001 09:52:59 UTC