Uploaded image for project: 'Xerces2-J'
  1. Xerces2-J
  2. XERCESJ-1254

Empty uris in targetNamespace attribute not reported as a XML Schema error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Invalid
    • 2.9.0
    • None
    • None

    Description

      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.

      Attachments

        1. EmptyTargetNamespace.xsd
          0.2 kB
          Ignacio Hernandez-Ros

        Activity

          People

            Unassigned Unassigned
            ihr Ignacio Hernandez-Ros
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: