Hello,

quite a while ago I started building a parser for the  COLLADA domain specific 
language based on generate-ds. Unfortunately, I didn't have the time to 
continue this projects until now. 
I have two questions:

when I run 
$> generateDS.py --no-process-includes  -o PyCollada.py -s PyCollada-subs.py 
--super=PyCollada collada_schema_1_5.xsd 
$> python PyCollada.py 

I get the following error:
Traceback (most recent call last):
  File "PyCollada-subs.py", line 9, in <module>
    import PyCollada as supermod
  File "/Users/ulbrich/Projects/generateds-collada/PyCollada.py", line 2911
    else:

And the generated code is indeed malformed:

 2910     def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):
 2911         else:
 2912             objs_ = self.gds_build_any(node, 'technique_type')
 2913             if objs_ is not None:
 2914                 self.add_anytypeobjs_(objs_)

The XSD is available here: http://www.khronos.org/files/collada_schema_1_5

Do you know what is going wrong?


My second question is related to referencing within the COLLADA document. It 
makes extensive use of references between elements using ID and SID tags. So I 
want to use a lookup table when the document is read and that writes itself on 
export. Do you have any suggestions what would be the best first step for 
creating that functionality (e.g., modifying the parser as subclassing would 
induce a lot of redundancy)?

Thank you a lot in advance,

Stefan





--

Karlsruher Institut für Technologie (KIT)
Institute for Anthropomatics - IAIM
Humanoids and Intelligence Systems Lab

Stefan Ulbrich
Research Scientist

Adenauerring 2  (Building 50.20, R323)
76131 Karlsruhe, Germany

Phone: +49 721 608-45336
Fax:     +49 721 608-44077
EMail:  stefan.ulbr...@kit.edu
http://his.anthropomatik.kit.edu/

KIT – University of the State of Baden-Wuerttemberg and
National Research Center of the Helmholtz Association

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users

Reply via email to