Updated: (XERCESJ-1254) Empty uris in targetNamespace attribute not repor 2007-06-12 - By Ignacio Hernandez-Ros (JIRA)
[ https://issues.apache.org/jira/browse/XERCESJ-1254?page=com.atlassian .jira.plugin.system.issuetabpanels:all-tabpanel ]
Ignacio Hernandez-Ros updated XERCESJ-1254: -------------------------------------------
Attachment: EmptyTargetNamespace.xsd
Test case
> Empty uris in targetNamespace attribute not reported as a XML Schema error > -------------------------------------------------------------------------- > > Key: XERCESJ-1254 > URL: https://issues.apache.org/jira/browse/XERCESJ-1254 > Project: Xerces2-J > Issue Type: Bug > Components: XML Schema Structures > Affects Versions: 2.9.0 > Reporter: Ignacio Hernandez-Ros > Priority: Minor > Attachments: EmptyTargetNamespace.xsd > > > According to Section 3.15.2 of the XML Schema Specification, a targetNamespace attribute with empty content must be considered as an error. > http://www.w3.org/TR/xmlschema-1/#declare-schema > The 3rd paragraph below the table in the spec says: > Since the empty string is not a legal namespace name, supplying an empty string for targetNamespace is incoherent, and is not the same as not specifying it at all. > Xerces 2.9.0 considers a schema with empty content in the targetNamespace as a valid schema.
-- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
--------------------------------------------------------------------- To unsubscribe, e-mail: j-dev-unsubscribe@(protected) For additional commands, e-mail: j-dev-help@(protected)
|
|