Thread Previous • Date Previous • Date Next • Thread Next |
Hi Tim,The process that takes place in the conversion is basically a big loop that translates from the xmind file to the XSD files.
It goes from one xmind sheet to the next, and each sheet corresponds to a XSD file that will be generated. The name of the XSD file is the name of the main topic of each sheet.
It converts a specific structure that is present in the CDD file: At the first level we have the names that translates to the each 'topic'. This name here is actually each one of the the subtopics of the main topic of the current processed sheet of the xmind file. Attached to the 'topic' in the second level, we have the 'subtopics' and in the third level, attached to the second, we have the 'attributes'. At some point, I will make it more general, capable of converting a more diverse xmind structure.
It generates a very simple (but valid) XSD, one that is not yet the most adequate to express the complexity of the xmind file. I need to do a smarter algorithm that will take in account the variety of the XSD data strucures and, for that, I'm taking a more in-depth look at the XML Schema specification.
Regarding the comments, I was already planning to write then in english the next time. This code that I sent is just a first draft, more for me to experiment. As you could see, there is almost no comments and the code is not exacly descriptive. Those too will be improved in the upcoming versions. :)
Cheers Em 07-04-2012 22:38, Timothy Cook escreveu:
Eduardo, I had a chance to look at your xmind2xsd converter. Thanks for committing this effort. Can you explain a bit about the process that is going on when it is creating those XSDs? BTW: Yes, the comments and user messages do need to be in English. :-) Maybe we can get someone to translate them for you? Thanks! --Tim
Thread Previous • Date Previous • Date Next • Thread Next |