Jean-Vincent Drean wrote: > On Wed, Sep 3, 2008 at 9:38 PM, Vincent Massol <[EMAIL PROTECTED]> wrote: >> Hi, >> >> This has been slightly discussed in other thread but not clearly so >> here's the clear proposal I'd like to implement: >> >> 1) Linking to an attachment: >> >> [[label>attachment:my.doc]] or simply [[attachment:my.doc]] > > Could we use "=" instead of ":" is already used for the wiki prefix > (as in xwiki:Main.WebHome) ? > To be able to write [label>attachment=xwiki:Main.WebHome^my.doc] > >> 2) Image link: >> >> [[label>reference>image=my.png]] or simply [[reference>image=my.png]] > > "reference" is a wiki page here ? > If so I'd be in favor of keeping the target element as the last > element of the link : [[image=my.png>reference]].
I'm not sure about this, traditionally the target was the second parameter, and I think it would be better to keep it that way: label, target, extra parameters. >> [snip] >> >> Note 2: The value for attachment:xxx is an attachment name (as in >> my.doc) or the qualified name of an attachment. I'm proposing >> "wiki:space.page^attachment" for now. >> Note 3: The value for image can be: a full URL, an image attachment >> name (as in my.png) or the qualified name of the image as in: >> "wiki:space.page^imagename" (same as above). > > I'm not a fan of "^" or "/" but I don't have any suggestion, choices > are very limited! We could also keep ':' as a generic separator, but it will require all links to also include the wiki name. Another more complex idea would be to have something like: part1=value1:part2=value2:part3=value3... For example: space=Space:document=Doc:version=4.2 wiki=incubator:space=Some.Deep.Space:document=Doc:attachment=file.svg:attachmentVersion=1.4 space=SpaceName:document=DocName:attachment=archive.zip:path=/path/inside/archive/index.html Of course, this is the long version, and the short version, if the part name is not specified, is: first part = wiki second part = Space.document third part = attachment -- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

