On Thu, 30 Jun 2011 22:04:33 -0700
"taa, Leo Newbie" <[email protected]> wrote:
> > I would think either XML or JSON, written to a file Leo can be told to
> > read
>
> All right, I'll try XML. What I need is an example showing cloned nodes,
> and the steps to tell Leo to read it. Can you help?
Well, cloned nodes would be represented in XML by reference to an ID of
another node.
<dag> <!-- directed acyclic graph -->
<node id='1'>
<head>title</head>
<body>text</body>
</node>
<node id='2'>
<head>title</head>
<body>text</body>
<node id='3'>
<head>title</head>
<body>text</body>
</node>
</node>
<node id='4'>
<head>title</head>
<body>text</body>
<node id='5'>
<head>title</head>
<body>text</body>
</node>
<reference target='2'/>
</node>
</dag>
Would represent something like
1
2'
3
4
5
2'
3
where the node 2 subtree is cloned, occurring after node one and again
after node 5 in node 4.
If you can come up with an XML format along those lines that carries
the content you need it to carry, we can look at having Leo read it
into a tree.
Cheers -Terry
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/leo-editor?hl=en.