IBM Support

PM53415: After UML-to-XSD transformation, some classes are incorrectly transformed into 'complexType' with 'complexContent'

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • In IBM Rational Software Architect, if you use the UML-to-XSD
    transformation to transform a UML Class with the 'complexType'
    stereotype that extends another 'complexType' class that, in
    turn, extends a primitive type (simpleType) and has an
    attribute, it will be incorrectly transformed into a
    'complexType' with 'complexContent'.
    
    The following steps reproduce the problem:
    
    1. Create a UML Model and apply the 'XSD Transformation Profile'
    
    2. Define a UML class 'A' and apply the '??complexType??'
    stereotype
    3. Add an attribute to the class and apply the '??attribute??'
    stereotype to this attribute
    4. Add a generalization relationship from class 'A' to the
    'string' data type, so that the class 'A' extends the 'string'
    type
    5. Define a UML Class 'B' and apply the ??complexType??
    stereotype to it
    6. Add a generalization relationship from class 'B' to class
    'A', so that class 'B' extends class 'A'
    7. Add a UML-to-XSD transformation and run this transformation
    
    Expected Result: The transformed XML schema includes:
    --?class 'A' as a 'complexType' with 'simpleContent'
    --?class 'B' as a 'complexType' with 'simpleContent'
    
    Actual Result: The transformed XML schema includes:
    --?class 'A' as a 'complexType' with 'simpleContent', as
    expected
    --?class 'B' as a 'complexType' with 'complexContent', which is
    not expected
    
    Workaround:
    Modify the generated .xsd file, so that class 'B' has
    'simpleContent' instead of 'complexContent'
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    While Transforming a ComplexType1 extending from a
    SimpleType and having only attributes is correctly
    Transformed with SimpleContent but when another ComplexType2
    extending from the above ComplexType1 then that is
    transformed as ComplexContent while it should be
    SimpleContent only.
    

Problem conclusion

  • There was a missing check for such condition. We have made
    this check and now if a ComplexType extending another
    ComplexType with SimpleContent and having attributes only
    will transformed as ComplexType with SimpleContent.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM53415

  • Reported component name

    RSA-SE WIN

  • Reported component ID

    5724V8800

  • Reported release

    755

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-12-02

  • Closed date

    2012-06-20

  • Last modified date

    2012-06-20

  • 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

    RSA-SE WIN

  • Fixed component ID

    5724V8800

Applicable component levels

  • R755 PSN

       UP

[{"Business Unit":{"code":"BU029","label":"Software"},"Product":{"code":"SS4JE2","label":"Rational Software Architect Standard Edition"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.5.5"}]

Document Information

Modified date:
28 October 2021