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 18:12:26 UTC

[jira] Created: (XERCESJ-1254) Empty uris in targetNamespace attribute not reported as a XML Schema 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
         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


[jira] Closed: (XERCESJ-1254) Empty uris in targetNamespace attribute not reported as a XML Schema error

Posted by "Ignacio Hernandez-Ros (JIRA)" <xe...@xml.apache.org>.
     [ 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


[jira] Reopened: (XERCESJ-1254) Empty uris in targetNamespace attribute not reported as a XML Schema error

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1254?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Glavassevich reopened XERCESJ-1254:
-------------------------------------------


> 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@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Updated: (XERCESJ-1254) Empty uris in targetNamespace attribute not reported as a XML Schema error

Posted by "Ignacio Hernandez-Ros (JIRA)" <xe...@xml.apache.org>.
     [ 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@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Resolved: (XERCESJ-1254) Empty uris in targetNamespace attribute not reported as a XML Schema error

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1254?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Glavassevich resolved XERCESJ-1254.
-------------------------------------------

       Resolution: Invalid
    Fix Version/s:     (was: 2.9.0)

Removing the fix version so that this doesn't show up in the Xerces 2.9.0 release notes (since nothing was fixed here).

> 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@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Closed: (XERCESJ-1254) Empty uris in targetNamespace attribute not reported as a XML Schema error

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1254?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Glavassevich closed XERCESJ-1254.
-----------------------------------------


> 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@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org