> From: Christian Kaiser

>Sent: Wednesday, April 24, 2013 5:27 AM
> 

Christian -

I believe that I've been able to find our problem.

When mpeg7v2.xsd is imported by webinterface.xsd, something was
confusing generateDS.py so that it was not generating the classes for
the type definintions in webinterface.xsd that follow the import
element.  Something was causing generateDS.py to push and pop on an
internally used stack in an unbalanced way.  One too many pops I
think.

Once I suspected that, I was able to temporarily insert some
debugging code that gave me a hint about where the "special"
construction is.

It's an annonomous simpleType inside a restriction inside another
simpleType.  There are several of them in mpeg7v2.xsd.  One reason
it took me so long to find this problem is because mpeg7v2.xsd is so
big and because I did not know where to look or what to look for in
that schema.

I've made a fix.  With this fix I can generate a module that is able
to parse and export your test document (test_web.xml).  For example:

    $ generateDS.py -f -o tmp14sup.py webinterface.xsd
    $ python tmp14sup.py test_web.xml 

Thanks for providing all the schemas and test data that enabled me
to work this out.

I've attached the patched version to a separate email (so as not to
put too much bulk into the email list).  If you get a chance to try
it out, please let me know whether it works for you.

This patched version also passes my regression tests.  So, I'll
release this patched version in a few days.

And, thanks for finding and alerting me to this problem.  It was a
special and deep bug that needed to be fixed.

- Dave


--


Dave Kuhlman
http://www.rexx.com/~dkuhlman

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users

Reply via email to