[
https://issues.apache.org/jira/browse/XERCESJ-870?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Elliotte Rusty Harold closed XERCESJ-870.
-----------------------------------------
Resolution: Not A Bug
> Incorrect error message for PI target of the form xml:NCName
> ------------------------------------------------------------
>
> Key: XERCESJ-870
> URL: https://issues.apache.org/jira/browse/XERCESJ-870
> Project: Xerces2-J
> Issue Type: Bug
> Components: Other
> Affects Versions: 2.6.0
> Environment: Operating System: All
> Platform: All
> Reporter: Henry Zongaro
>
> The following document does not conform to the Namespaces in XML
> Recommendation, because there is a colon in the target of the processing
> instruction.
> <?xml:stylesheet href="file:///e:/henry/style.xsl"?>
> <doc/>
> However, the error reported is the following:
> The processing instruction target matching "[xX][mM][lL]" is not allowed.
> That message should only apply to a PI target whose name is precisely "xml"
> (ignoring case) - not those that begin with those letters. The message is
> confusing.
> On the other hand, Xerces-J reports the right error for the following document
> <?abc:stylesheet href="file:///e:/henry/style.xsl"?>
> <doc/>
> A colon is not allowed in the name 'abc:stylesheet' when namespaces are
> enabled.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]