Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6975213

Empty string value of namespace and targetNamespace attributes is allowed by schema parser

    Details

      Backports

        Description

        There is wrong result in an JCK negative testing: attached schematas are valid, although it was expected the opposite.
        It contradicts to the specification http://www.w3.org/TR/2004/REC-xmlschema-1-20041028/structures.html#element-schema) that states:

        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. The appropriate form of schema document corresponding to a ·schema· whose components have no {target namespace} is one which has no targetNamespace attribute specified at all.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  joehw Joe Wang
                  Reporter:
                  lkuskov Leonid Kuskov
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: