I was hoping somebody could shed some light on some of dia's XML. in
particular the connecty lines (UML dependancy, inheritance, etc)

Here is a small sample from from one of my TemplateToolkit templates (Use
perl, use TT, be happy!).

(This bit is fairly self explainatory)
---
  <object type="UML - Dependency" version="0" 
            id="[% dependancy.Id %]">
      <attribute name="obj_pos">
        <point val="9.74835,11.25"/>
      </attribute>
      <attribute name="obj_bb">
        <rectangle val="8.89835,4.45;15.25,12.1"/>
      </attribute>
--- 

(this bit is odd)
---
      <attribute name="orth_points">
        <point val="number, number"/>
        <point val="number, number"/>
        <point val="number, number"/>
        <point val="number, number"/>
      </attribute>
---

How do these points relate the orientation of the line - I am guessing,
they represent the corners of a rectangle that the line(s) in within but
how the line is drawn within the rectangle isn't indicated.

(and so is this)
---
      <attribute name="orth_orient">
        <enum val="1"/>
        <enum val="0"/>
        <enum val="1"/>
---

I am guessing that this sets how the line is drawn (ie up, left, up) or
something but mentioning orthogonal and edges and plotting and algebra
gives me a headache quite rapidly ;)

would one of the xml hackers care to give a quick explaination of how
these xmll elements effect the layout of elements in the diagram and
better still would anybody involved in the xml be able to provide some
annotated xml and dtd's. I would but I have reverse engineered the xml
(hate reading DTD,s they are rarely much help) and don't really know it
well enough to document it well.

regards,

A.

ps autodial will be available from http://termisoc.org/~betty/projects/
some time before the end of the week, if not email me and moan til I put
something up. :)

Reply via email to