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

Extensible namespaces and types that change

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • Java-SDO-beta1
    • None
    • Eclipse, EMF 2.2.1

    Description

      Once an xml-schema with a namespace is defined (XSDHelper) you cannot define other schemas with the same namespace.
      I would like namespaces to be extensible.

      Once the types of a schema is defined you cannot change them by defining an altered version of the schema.

      I realize the dangers of modifying already defined types but I believe i ought to be an option.

      Summary from: http://www.mail-archive.com/tuscany-user%40ws.apache.org/msg00624.html

      An xml schema is uploaded and SDO is used to generate a form for
      submitting data as xml-instances of the schema.
      New schemas in the same namespace may be added often resulting in new
      forms (this is the first issue where I need to extend existing
      namespaces).

      Xml instances may later be edited again.
      This is the most common use case and SDO seems to support this very
      well.

      BUT xml schemas may be modified, even individual types.

      This of course flagged some warning signs and schema versions were
      considered.
      But 'use at own risk' was chosen because of its simplicity. To support
      this strategy a status/mode will be introduced so xml-instances cannot
      be edited while schema is in 'administration'-mode. This ought to handle
      the case with instances at schema-modification time.

      With regards to serialized xml instances any data that is rendered
      invalid with type changes will be reset/deleted as of design.

      Attachments

        1. SDOXSDEcoreBuilder.java
          59 kB
          Christian Landbo Frederiksen
        2. SDOXSDEcoreBuilder.java
          44 kB
          Christian Landbo Frederiksen
        3. SDOXSDEcoreBuilder.java
          59 kB
          Christian Landbo Frederiksen
        4. SDOXSDEcoreBuilder.java
          44 kB
          Christian Landbo Frederiksen
        5. TestTypeChangesAndExtensibleNamespaces.java
          9 kB
          Christian Landbo Frederiksen
        6. TestTypeChangesAndExtensibleNamespaces.java
          7 kB
          Christian Landbo Frederiksen
        7. XSDHelperImpl.java
          10 kB
          Christian Landbo Frederiksen

        Activity

          People

            Unassigned Unassigned
            chrlandbo Christian Landbo Frederiksen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: