Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-1085

schemaLocation attribute in the <xsd:import> should be only a hint

    XMLWordPrintableJSON

Details

    Description

      Currently XSDHelper.define(InputStream inputStream, String schemaLocation) uses the second parameter to locate the importing XSD specified by the schemaLocation attribute. If the schemaLocation is incorrect, its whole namespace cannot be resolved.

      The SDO runtime should be able to look up the registered namespace and type even the xsd:import failed. Also, the users should be able to register their SDO types with their XSD referencing the sdoModel.xsd but without providing sdoModel.xsd in their applications because sdoModel.xsd is the SDO core model.

      I will attach a test case later.

      Attachments

        1. org.apache.tuscany.sdo.test.SimpleDynamicTestCase.txt
          3 kB
          Fuhwei Lwo
        2. patch-1085.1
          24 kB
          Fuhwei Lwo
        3. simple2.xsd
          2 kB
          Fuhwei Lwo
        4. simple2.xsd
          2 kB
          Fuhwei Lwo
        5. SimpleDynamicTestCase.java
          5 kB
          Fuhwei Lwo
        6. tuscany-1085.patch2
          2 kB
          Fuhwei Lwo

        Activity

          People

            Unassigned Unassigned
            fuhwei Fuhwei Lwo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: