links: 3-tuples -> 5-tuples?

Markus Reinsch <[email protected]> Mon, 13 Oct 2003 23:20:02 +0200
Newsgroups gmane.comp.web.zope.plone.collective.ticle
Message-ID <[email protected]>
Hi

I suggest to make an optional extension from 3-tuples to 5-tuples.
This enables content-to-content links in xml documents.

Sure for most applications a 3-tuple will be sufficient.
But these two optional parameters won't make the framework more complex.

current proposal: 3-tuples: type, source, target
extension:        5-tuples: type, source, target, source-path,
target-path

Markus

see also
http://plone.org/development/current/projects/ticle_folder/InitialProposal

--- EXAMPLE --------------------------------------------------

5-tuple
(type=ref,source=4711,target=4712,source-path=123,target-path=456)

source-document: zope-id 4711
_____________________________
| <document>                 |
| <header>My Title</header>  |
| .........................  |
| <link id="123">hi</link>   | -----------
| .........................  |            |
| </document>                |            |
|____________________________|            |
                                          |
target-document: zope-id 4712             |
______________________________________    |
| <document>                          |   |
| <header id="4562>My Title</header>  | <-
| .........................           |
| </document>                         |
|_____________________________________|


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php