ldo / dvdauthor

continue development of DVD-authoring tool
http://dvdauthor.sourceforge.net/
GNU General Public License v2.0
71 stars 20 forks source link

dvdauthor does not accept dvdunauthor generated xml files #6

Open pmaziere opened 10 years ago

pmaziere commented 10 years ago

In order to have a better understanding of how DVDs are structured, I used dvdunauthor (latest git master commit) on one of my DVD to generate the corresponding xml file. When i tried to use this xml file with dvdauthor (dvdauthor -x myfile.xml -o OutputPath), it says that it cannot match start tag titlemap.

So I had a look at the source, and it seems that the xml structure expected by dvdauthor is not the same as the one generated by dvdunauthor.

ldo commented 10 years ago

What would you propose as a fix?

pmaziere commented 10 years ago

First, could you please explain why dvdauthor input xml file and dvdunauthor output xml file do not have the same schemas ? I think I've read, maybe in the ML, that dvdunauthor was in advance compared to dvdauthor, the former being able to describe more DVD features than the latter. Can you confirm ? For what follows, I will suppose that you do.

From what I read in the source, the xml structure is verified by a manually build tag/allowedChildrenTags/callback associations. So I would propose 4 steps: 1/ confirm that the dvdauthor.xsd is in sync with the output of dvdunauthor; if not, fix it so that everyone could have a common reference 2/ update the tag/allowedChildrenTags/callback associations to match the schema of dvdunauthor, using empty callbacks for missing features 3/ update dvdauthor output xml file to be in sync with the fixed dvdauthor.xsd 4/ implement the empty callbacks introduced in 2

What do you think ?

lu-zero commented 10 years ago

+1