[ 
https://issues.apache.org/jira/browse/XERCESJ-1755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17684288#comment-17684288
 ] 

Elliotte Rusty Harold commented on XERCESJ-1755:
------------------------------------------------

The user is wrong. It makes no sense to use U+FF0B as a namespace prefix or 
almost anywhere else outside of typesetting. Honestly maybe not even there. 
It's not clear to me this is truly a distinct character, and perhaps shouldn't 
have been added to Unicode in the first place. Regardless though, it clearly 
does not belong in markup, even were it allowed, and the user is making trouble 
for themselves by trying to use it there. It's a good example of some developer 
being way too impressed with their own cleverness and knowledge of technical 
arcana. This should not have gotten past the first code review.  

> Unicode character Fullwidth Plus Sign not allowed in attribute value (XML 1.0)
> ------------------------------------------------------------------------------
>
>                 Key: XERCESJ-1755
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1755
>             Project: Xerces2-J
>          Issue Type: Bug
>            Reporter: Radu Coravu
>            Priority: Minor
>
> Unicode character U+FF0B: Fullwidth Plus Sign not allowed in attribute value 
> with XML 1.0 version.
> This XML fragment is reported by Xerces as invalid:
> {code}<?xml version="1.0"?>
> <abc xmlns:+="https://iso20022.plus";></abc>{code}
> {quote}Element or attribute do not match QName production: 
> QName::=(NCName':')?NCName.{quote}
> Although FF0B seems to fit in this range of allowed chars [#xE000-#xFFFD] for 
> XML 1.0:
> https://www.w3.org/TR/REC-xml/#NT-Char
> If I change the XML version to 1.1 the validation starts working again.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
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