> From: Kerim Mansour <kerim.mans...@de.ibm.com>
> To: Dave Kuhlman <dkuhl...@rexx.com>
> Sent: Saturday, April 11, 2009 12:45:07 PM
> Subject: Re: generateDS.py - Use this one
>
> Hi Dave,
> 
> I have found some time to play around with generateDS again and "solved" my
> problem.

Super.
  
> 
> I inserted a member "internalName" which holds the elements true name. In
> svg this happens to be the name of the class without "type".
> I think it is a good approach to remove the name and namespace attributes
> and replace them by defaults based on the schema definition.
> if for example an element A declares the members B and C which are of type
> BType and CType, then it is best (in my view) to automatically declare the
> name of the B Element as "B" in the init method. (That's what i have done
> in the end although in this form it is not usable for all schemas).
> If you do this then you don't need to keep track of the name of the element
> (versus the type)
>

Sounds like a good solution.

> See what came out. (Dont judge to hard on the code ... was quite some  
> hacking session). Perhaps you can use something or find some interesting
> hook that you would like to straighten out. In case You have made any
> progress yourself i would be glad to hear from you.
> (See attached file: src.zip)

I'm leaving on a trip tomorrow.  (We're going on vacation to see
architecture and museums and more in Chicago.)  When I get back,
I'll work on adding your changes to generateDS.py, doing some
testing, etc.  I'll keep you informed on how it goes.

Thanks, by the way, for all your help.

- Dave


------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users

Reply via email to