So we need a new XML definition. I've been looking at the FreeMind
docs. Couldn't find a good definition of the markup - do you have
one?
Otherwise, I guess we can just extend what we have.
<node>
<subnode></subnode>
</node>
And then throw in additional nodes or links at the bottom:
<link node="" node="" type=""/>
<node>Some other node that doesn't logically fit in the hierarchy</
node>
Semantically, the node elements could be LI elements. But I can't
think of a semantic equivalent of a two-way link between elements on a
page. I keep thinking about anchor tags, but they don't really fit
the use-case.
K
On Dec 16, 9:32 pm, Yannick Warnier <ywarn...@gmail.com> wrote:
> OK, thanks for your answer. One version of the js-mindmap (version 1,
> I think), is available herehttp://brookellingwood.com/mindmapfrom
> someone who also went for the XML path.
>
> As I'm trying to figure out what I want to do, I realize more and more
> that the classical mindmap schema is not what I need. I need something
> like a "thesaurus", where nodes can be linked to others through a
> "synonym" relationship, so I would have three types of relations:
> child to father, father to children *and* synonym to synonym.
>
> My biggest problem here is the maths to draw the links between
> elements that have these 3 links. Do you see this third type of link
> like something that should be handled easily by the current library?
> It introduce a kind of risk of "loop" in the process. For example:
>
> "Car companies" is father of
>
> Ford Mercedes Porsche Ferrari Lotus Tesla BMW VW
>
> but I want to say that VW is the same company as Porsche.
>
> This means that I will need to show links between "Car companies" and
> all its children, but I will also need to show a link between VW and
> Porsche.
>
> Any thought on this?
>
> Because time is scarce for both, I want to avoid going in one
> direction and then going back because I didn't think thoroughly
> enough.
>
> Yannick
>
> 2009/12/14 kenneth <kenneth.kuf...@googlemail.com>:
I've been trying to think very hard of a way to do this well, but as
you say... it doesn't fit really well in the HTML DOM apart by maybe
using double lists or so (defining elements twice).
For my application, I have found a way though: I will just split the
screen into 4 divs: the current element, its parents, its children and
then its synonyms, and I'll manage the link through PHP and a database
backend (which is where my data comes from in the first place anyway).
So that wil probably not be extending js-mindmap in any way. Sorry
about that, looks like a vain effort for now.
Yannick
2009/12/21 kenneth <kenneth...@googlemail.com>: