Book a Demo

Author Topic: XML Schema Generation - Stereotype  (Read 2520 times)

fabiopinheiro

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
XML Schema Generation - Stereotype
« on: May 09, 2005, 06:02:51 am »
Hi,
How can I generate my xml schema with the stereotype in the attribute?

I need to identify in my [file].xsd the stereotype of my attributes.

Today, I only can identify the name and the type of attributes.
Ex:
<xs:element name="Class.cd_Order" type="xs:int"/>

Anybody have a idea?

thanks,
Fabio Pinheiro
« Last Edit: May 09, 2005, 06:04:20 am by fabiopinheiro »

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: XML Schema Generation - Stereotype
« Reply #1 on: May 09, 2005, 06:47:44 am »
Quote
Hi,
How can I generate my XML schema with the stereotype in the attribute?

I need to identify in my [file].XSD the stereotype of my attributes.

Today, I only can identify the name and the type of attributes.
Ex:
<xs:element name="Class.cd_Order" type="xs:int"/>

Anybody have a idea?

thanks,
Fabio Pinheiro


Fabio,

From my memory of playing with the creation of XSDs - there is NO provision in the W3C specification for the direct specification of stereotype in the xs:element structure.  If you go to the W3C site you'll see a primer for this stuff.

Others can comment on whether EA actually does something with stereotype to provide that information in the generated artifact.  But the above, I think, is the W3C position.

HTH

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!