You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2002/03/13 18:21:43 UTC

DO NOT REPLY [Bug 7076] - Illegal element names accepted

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7076>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7076

Illegal element names accepted

gmarcy@us.ibm.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From gmarcy@us.ibm.com  2002-03-13 17:21 -------
> According to spec 2.3 an element cannot start with any combination
> of upper and lowercase letters 'xml'. (spec 2.3)

Actually, the spec says:

  Names beginning with the string "xml", or any string which would match
  (('X'|'x') ('M'|'m') ('L'|'l')), are reserved for standardization in
  this or future versions of this specification.

Xerces respects this by placing no interpretation on any such names that
are not defined by other specifications to have a particular meaning...
which is the purpose of that statement in the specification.  In particular,
it would not be appropriate for the parser to take any action, including
a warning, since it cannot know that such a Name does not in fact have a
standard defined purpose that is implemented by some other XML processor
being used by the application.  So while it is true that users should not
create documents with names that begin with [xX][mM][lL] for non-standard
purposes, the parser is in no position to tell the difference between the
two possible cases.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org