Hi,
Since recognizing links to be xwiki links is hard (not even always
possible) we need to add some extra information when we render wiki
syntax content into XHTML (for the WYSIWYG editor for ex) so that we
can convert it back to wiki syntax.
We have 2 solutions I can think of:
1) Using a span with a class value:
<span class="wikilinkplaceholder wikilink"><!
[CDATA[Space.ExistingPage]]><a href="/xwiki/bin/view/Space/
ExistingPage">Space.ExistingPage</a></span>
2) Using a comment:
<!-- startwikilink:Space.Existing --><span class="wikilink"><a href="/
xwiki/bin/view/Space/ExistingPage">Space.ExistingPage</a></span><!--
stopwikilink -->
Pros and cons:
* 2) allows not generating visible content in XHTML so that if someone
copy/paste our generated XHTML he won't have to add some CSS rule to
prevent it from being visible. BTW I'm not even sure we can find a CSS
rule to do that in solution 1) so we might need to have 2 spans as in:
<span class="startwikilink"><![CDATA[Space.ExistingPage]]></span><span
class="wikilinkplaceholder wikilink"><a href="/xwiki/bin/view/Space/
ExistingPage">Space.ExistingPage</a></span><span class="stopwikilink"/>
* 1) is harder to code since it requires using a SAX2 LexicalHandler,
which btw is not supported by all XML parsers:
"This is an optional extension handler for SAX2 to provide lexical
information about an XML document, such as comments and CDATA section
boundaries. XML readers are not required to recognize this handler,
and it is not part of core-only SAX2 distributions."
It also requires that I make some modifications to wikimodel since
wikimodel currently ignores comments.
Solution 2) seems slightly better to me but as it's quite more complex
to implement I'd like to be sure that it's the best solution.
WDYT?
Thanks
-Vincent
Hello all,
This time I will "bother" you with a different type of mail, not the usual
bugs and fixes issues that come on dev mailing lists.
First, let me say that so far it was nice to be part of the XWiki Team. And
many thanks to those who worked with me and helped me when I couldn't do it
by myself. Here, first in the list goes Sergiu Dumitriu, who was helped me
more than anyone else throughout the time. Also, thanks to Marta, Jerome,
JV, Laurent and the whole Iasi Team. I hope I'm not forgetting anyone.
It has been a nice opportunity to work with you guys.
However, time has come to say goodbye to all of you and continue my journey
with the next step in my professional life. I am going to pursue the goal of
becoming a good java programmer and even if XWiki could provide me with an
environment for doing this, I feel I need something more than that. There
are already plenty of intelligent and motivated people who do this very well
in XWiki and I would always be in their shadow. I feel I need to do this by
myself.
So, I can only wish everyone good luck and success in whatever is that
everyone is doing. I am sure that only a bright and successful future awaits
XWiki. I can only wish it the best.
Thank you very much for working with me.
Evelina Vrabie
Hi,
Following up on my previous email we have several pbs in our current
syntax:
* we need to forbid "=" in doc names
* we need to forbid "|" and ">" in doc names
Hence Sergiu and I have brainstormed and we propose the following:
label>ref>>param1=value1 ... paramN=valueN
and
label|ref||param1=value1 ... paramN=valueN
Here's my +1
Thanks
-Vincent
---------- Forwarded message ----------
From: Asiri Rathnayake <asiri.rathnayake(a)gmail.com>
Date: Mon, Oct 6, 2008 at 12:46 PM
Subject: Re: [xwiki-notifications] r13338 - in sandbox/xwiki-webdav:
references src/main/java/com/xpn/xwiki/plugin/webdav
src/main/java/com/xpn/xwiki/plugin/webdav/mock
src/main/java/com/xpn/xwiki/plugin/webdav/resources
src/main/java/com/xpn/xwiki/plugin/web
To: XWiki Developers <devs(a)xwiki.org>
On Mon, Oct 6, 2008 at 12:38 PM, SVN asiri
<sandbox-notifications(a)xwiki.org>wrote:
> Author: asiri
> Date: 2008-10-06 09:08:11 +0200 (Mon, 06 Oct 2008)
> New Revision: 13338
>
> Added:
> sandbox/xwiki-webdav/references/OldXWikiDavResource.java.Reference
>
> sandbox/xwiki-webdav/src/main/java/com/xpn/xwiki/plugin/webdav/resources/AbstractXWikiDavResource.java
>
> sandbox/xwiki-webdav/src/main/java/com/xpn/xwiki/plugin/webdav/resources/domain/AbstractXWikiDavFile.java
>
> sandbox/xwiki-webdav/src/main/java/com/xpn/xwiki/plugin/webdav/resources/views/AbstractXWikiDavView.java
>
> sandbox/xwiki-webdav/src/main/java/com/xpn/xwiki/plugin/webdav/utils/XWikiDavUtils.java
> Removed:
>
> sandbox/xwiki-webdav/src/main/java/com/xpn/xwiki/plugin/webdav/mock/MockXWikiServletContext.java
>
> sandbox/xwiki-webdav/src/main/java/com/xpn/xwiki/plugin/webdav/resources/XWikiDavResource.java
>
> sandbox/xwiki-webdav/src/main/java/com/xpn/xwiki/plugin/webdav/resources/domain/XWikiDavFile.java
>
> sandbox/xwiki-webdav/src/main/java/com/xpn/xwiki/plugin/webdav/resources/old/
>
> sandbox/xwiki-webdav/src/main/java/com/xpn/xwiki/plugin/webdav/resources/views/XWikiDavView.java
>
> sandbox/xwiki-webdav/src/main/java/com/xpn/xwiki/plugin/webdav/utils/XWikiDavUtils.java
Does this mean `svn mv` is not used ? I thought subclipse will take care of
it when i do refactorings :(
Hi,
In v1.0 we were using: [label>ref>_top] for a link with a target (rel).
We need to decide how that translates in v2.0.
A first approach would be to use:
[[label>ref>>target=_top]]
However there's a problem since we already have a way to define
parameters: (% ... %)
So this should probably be written instead as:
(% rel=_top %)[[label>ref]]
Since the (% %) notation allows passing any parameter I'm wondering
why we need the parameters in the link syntax. I'll ask Mikhail from
wikimodel why we need it but I don't see a valid reason.
Note that (% %) parameters are currently not supported on inline
blocks for now but the plan is to add it in wikimodel.
Last I'm pretty convinced now that we should support wiki syntax in
the label portion of a link, even if this is currently not supported
in wikimodel and that means we won't be able to use wikimodel
renderers (note that there's only 1 for now: the LaTex one but Doxia
also has a LaTex renderer that we can use).
Thanks
-Vincent
Hi devs,
I'm working on implementing the new link format we've decided, i.e.:
label>reference>param1=value1 ... paramN=valueN
Note that there's a potential ambiguity with the following link:
text>param=value
Since this can be considered as either:
* label = text, reference = "param=value"
* reference = text, parameters = "param=value"
Thus we have to decide that it's fordbidden to use "=" in document
names or we need to find a different link format.
I think forbidding "=" is fine.
WDYT?
Thanks
-Vincent