IBM Support

PI13260: After UML-to-XSD transformation, hyphens in model element names are lost

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 UML model that contains elements
    whose names are hyphenated, these hyphens will disappear in the
    XSD file.
    
    The following steps reproduce the problem:
    
    1. Create a UML project and model
    
    2. Apply the 'WSDL Transformation', 'SoaML', and 'XSD
    Transformation' profiles to the model
    
    3. Add a '??schema??' to the model and a class to the schema
    
    4. Give the class, for example, the '??complexType??' stereotype
    
    5. Add a public attribute to the class
    
    6. Give the attribute the name 'testAttribute-Abc' and apply the
    '??element??' stereotype
    
    7. Add a UML-to-XSD transformation configuration to the project
    with the model as the 'Source' and the project as the 'Target'
    
    8. Run the transformation configuration and examine the XSD file
    
    Expected Result:  The hyphen in the name 'testAttribute-Abc' is
    retained.
    
    Actual Result: The hyphen is lost and the name appears as
    'testAttributeAbc'.
    
    Workaround:
    Manually add the hyphens back into the XSD code.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    After UML-to-XSD transformation, hyphens in model element
    names are lost
    

Problem conclusion

  • The renaming of the classes generated through the UML-to-XSD
    transformation can now be controlled through an option in
    the Transformation configuration.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI13260

  • Reported component name

    RATL SW ARCHITE

  • Reported component ID

    5725A3000

  • Reported release

    851

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-03-07

  • Closed date

    2014-03-31

  • Last modified date

    2014-03-31

  • 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

  • R851 PSN

       UP

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

Document Information

Modified date:
31 March 2014