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 "Ignacio Hernandez-Ros (JIRA)" <xe...@xml.apache.org> on 2007/06/12 19:32:26 UTC
[jira] Closed: (XERCESJ-1254) Empty uris in targetNamespace
attribute not reported as a XML Schema error
[ https://issues.apache.org/jira/browse/XERCESJ-1254?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ignacio Hernandez-Ros closed XERCESJ-1254.
------------------------------------------
Resolution: Invalid
Fix Version/s: 2.9.0
The schema is not validated "alone" but one instance document created according to an schema with empty content in the targetNamespace declaration raises the right error.
> 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
> Fix For: 2.9.0
>
> 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@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org