IBM Support

PI33352: UML-to-XSD: 'anonymous' value of 'complexType' data type set to 'True' results in 'Type reference is unresolved' error

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • In IBM Rational Software Architect (RSA), if you perform a
    UML-to-XSD transformation on a model that contains a
    'complexType' data type whose 'anonymous' value is set to
    'True', the resulting XSD code will have a reference to the data
    type, which gives a 'Type reference is unresolved' error
    message.
    
    The following steps reproduce the problem:
    
    1. Create a UML project and model
    
    2. Apply the XSD Transformation profile to the model
    
    3. Add a class, 'Class1', to the model
    
    4. Add an attribute, 'att1' to 'Class1'
    
    5. Add a data type, 'DataType1', to the model
    
    6. Add an attribute, 'att2', to 'DataType1'
    
    7. Apply the '??complexType??' stereotype to 'DataType1'
    
    8. Set the 'Properties ? Stereotypes ? Stereotype Properties ?
    complexType ? anonymous' value of '??complexType??DataType1' to
    'True'
    
    9. Add a class diagram to the model
    
    10. Drag 'Class1' and 'DataType1' onto the class diagram
    
    11. Draw a composition association from 'Class1' to 'DataType1'
    
    12. Add a UML-to-XSD transformation configuration to the project
    
    13. Save all the changes and run the transformation
    configuration
    
    Expected Result: There is no reference to the data type in the
    XSD code.
    
    Actual Result: There is a reference to the data type in the XSD
    code, which results in the 'XSD: Type reference 'http://[Model
    Name]/#DataType1' is unresolved' error message.
    
    Workaround:
    Change the type of the 'DataType1' to 'Class', instead of
    'DataType'.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * -                                                            *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * UML-to-XSD transformation generates incorrect XSD file when  *
    * anonymous complex type modeled as 'DataType'.                *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • UML-to-XSD transformation is now modified to handle anonymous
    complex type modeled as 'DataType'.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI33352

  • Reported component name

    RATL SW ARCHITE

  • Reported component ID

    5725A3000

  • Reported release

    900

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-01-23

  • Closed date

    2015-06-05

  • Last modified date

    2015-06-05

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    RATL SW ARCHITE

  • Fixed component ID

    5725A3000

Applicable component levels

  • R900 PSY

       UP

  • R910 PSY

       UP

  • R911 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSYK2S","label":"Rational Software Architect Designer"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"900","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 October 2021