Author Topic: Accessing Attr Constraints from Transf. Templates  (Read 1719 times)

tthlivitis

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Accessing Attr Constraints from Transf. Templates
« on: June 23, 2005, 01:34:53 am »
Hi,

This is about accessing attribute constraints (Attribute Constraints Tab information) from within Model 2 Model Transformation Templates.

Context:
I have already modified the XSD M2M Transformation Template to include some specific needs and I need to further enhance it in order to automatically read attribute length and pattern constraints described in a standard Class (not XSD) source model and generate equivalent tagged values in the XSD target model.

The current turn-around  :-[ is to use some unused but accessible attribute fields to describe the constraints (like initial value for the pattern constraint, or attribute alias for the length constraints) which is extremely non-intuitive for class modelers!  :-[
Question

Am I missing some hidden hint about accessing attribute constraints from within Transformation Templates? Do you plan adding this possibility in the near future?

Thanks a lot.