XSD-Generation: Replace entitynames while transforming

General discussions about code engineering

Moderator: Moderators

XSD-Generation: Replace entitynames while transforming

Postby frank.ertl@f-i-solutions-plus.de » Tue Apr 30, 2013 4:54 am

Hi there,

I try to transform a domain-model into an xsd-scheme using the model transformation wizard. Unfortunately this does not work as I get some errors like this:

"Fehler: 184:47: s4s-att-invalid-value: Invalid attribute value for 'name' in element 'complexType'. Recorded reason: cvc-datatype-valid.1.2.1: 'Elektronische Adresse' is not a valid value for 'NCName'."

I know that whitespaces are not allowed. How can I add a custom rule to the UML -> XSD-Transformation to change the names of the domain objects (replace whitespaces with underscores)?

Changing the names of all domain-objects is not an option as we are generating the specs from the model and names like "Elektronische_Adresse" are not wanted by our customer.

Forum Newbie
Forum Newbie
Posts: 4
Posts Rating:0
Joined: Mon Jan 16, 2012 6:20 am

Return to Code engineering

Who is online

Users browsing this forum: No registered users and 0 guests