I will consult our engineers and then come back to you. By the way, have you tried the early access I sent you with regards to the modeling and generation of XSD?
Its working perfectly! because of how your engineers have implemented it as a feature I can add any restriction I like from strings to integers.
I have added a couple of default params to make it a bit easier so anything that is stereotyped as xsdSimpleType automatically has a base and restriction added. The only thing missing (and no, I dont expect you to add it) would be to allow inheritance - a superclass with string and a subclass with length=10 or something similar…
The reason for the code request above is so that I can publish the modified instant generator code for others to use in the future.
Please pass on my thanks to your dev’s for a fine piece of work!
It is not possible to remove CDATA from t_getDocumentation()
but you can get the original documentation by $utilities.getOriginalDocumentation($THE_OBJECT, $args.get(“property”))
Please download this and install by overwriting the current installation. Notice that this is a patch for the current release. If you want a patch for the early access release I sent you earlier, please let me know and we will arrange it for you.
The only thing missing (and no, I dont expect you to add it) would be to allow inheritance - a superclass with string and a subclass with length=10 or something similar…
Do you mean the ability to model the following in class diagram?
The information is not enough for us to identify the problem. Could you send us your log file? You can find it under the bin folder of VP Suite. I would be grateful if you can send me your project as well. If you can’t post here, you can send to my Email address directly: jick@visual-paradigm.com
I have included a zip file with the vp.log, the project and the modified XSD
generator files.
Sorry for the basic mail but my email server is under a bit of water at the
moment; for some reason the British summer seems to be a little on the wet
side so I am having to send this via my mobile phone.
One thing that I have noticed is there are two versions of VP - 20070716a (to
allow for schema types and restrictions) and 20070712u (to fix the
documentation). Not sure if it makes a difference…
Thanks again for such fantastic support over this; trust me when I say that I
have never had this level of support from a commercial company in 15 years of
IT!
20070712u should include the bug fix required for making it works. We suspect that you have overwritten $utilities, $class or $args.
To test if $utilities is overwritten or not, print $utilities in the .vm to see the result. It should display something like vp.com.instantgenerator.xsd.XsdUtilities@…
To test if $utilities is overwritten or not, print $class in the .vm to see the result. It should be something like com.vp.instantgenerator.xsd.XsdClass@…