[ 
https://issues.apache.org/jira/browse/XERCESJ-1681?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mukul Gandhi resolved XERCESJ-1681.
-----------------------------------
    Resolution: Not A Problem

As cited in this Jira issue, as per following text mentioned in the XML spec,

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

It is suggested in this Jira issue, that Xerces may issue a warning during XML 
document parsing when such a scenario is present. I can see in the XML spec 
that, when the spec recommends the XML processor to issue warnings for 
different applicable situations, the XML spec mentions following,
"... an XML processor may issue a warning ...".

I don't see the text, "... an XML processor may issue a warning ..." in XML 
spec, mentioned for the cited case (the 'quote' above).

My personal feeling is that, Xerces should not change its behavior, for the 
situation (the 'quote' above) mentioned in this jira issue. I'm resolving this 
Jira issue with resolution, 'not a problem'. Other Xerces committers may let us 
know their opinion if they don't agree with this resolution.

> Report parse error when element names begin with "xml"
> ------------------------------------------------------
>
>                 Key: XERCESJ-1681
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1681
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: SAX
>            Reporter: Radu Coravu
>            Priority: Major
>
> One of our users suggested us that an XML like this:
> {code:xml}
> <xml-root></xml-root>
> {code}
> is not valid because the specs:
> https://www.w3.org/TR/2006/REC-xml11-20060816/#sec-common-syn
> says that the name of an XML element should not start with XML:
> {code}
> A Name is a token beginning with a letter or one of a few punctuation 
> characters, and continuing with letters, digits, hyphens, underscores, 
> colons, or full stops, together known as name characters.] Names beginning 
> with the string "xml", or with any string which would match (('X'|'x') 
> ('M'|'m') ('L'|'l')), are reserved for standardization in this or future 
> versions of this specification.
> {code}



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

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

Reply via email to