On Jun 12, 2008, at 5:37 PM, Diego Jacobi wrote: Ok, i have been able to see the xml.
But check for this:
<?xml version="1.0" encoding="UTF-8"?> <dia:diagram xmlns:dia="http://www.lysator.liu.se/~alla/dia/"> <dia:diagramdata>
The page mentioned redirects to the old dia page, and the old dia page redirects to the new one.
The dia that i have usaed is one of the sample, but resaving it as an uncompressed xml havent changed the URL. ---------------
I think that it will be better in the future to adopt a format like ODT, i mean:
- A .dia file should be a tar.gz file or LZMA. (like ODT)
Yes* - There should be multiple folders on it, the main one called diagram and maybe also a "thumbnail" and an "attached" for attached objects like pictures.
Yes* - Inside the diagram folder should be placed all the individual shapes
Yes* - The main shape should be called "main.shape.xml" and this is the starting file that the program should open.
Yes* - Each shape describe the connections between other shapes or basic SVG figures like lines, squares, circles, etc. and the external connection points.
Yes - Each object (shape instance) should have (like in a DOM) a shapename or class, a unique id and childs (lines, circles, squares, other shapes, etc.).
Yes - Each object (shape instance) should have global properties (for the entire sheet) and individual properties (for overwriting properties per object), maybe both can be done with a CSS file.
Maybe, yes, huh? - The DOM and CSS should be available for scripted languages to change some properties dinamically.
Yes - Shapes should have some on-mouse-over and on-clic events support, for any script to use it.
You trying to implement diagrams in DOM? - Shapes should have some functionality to have a real word measured size, a fixed scale. (It could be just a property).
Tricky. If you don't have the font, then as soon as you edit the text it ends up a very different size.
-Lars
*) Yes to the purpose, the actual implementation may differ. I would probably pick Zip over tar.gz for avoiding having to scan it all. |