Hi,
I'm implementing semantic properties in XWiki Syntax 2.0
http://jira.xwiki.org/jira/browse/XWIKI-3320
I've done the wikimodel part and I'm now wondering how what XHTML we
should generate in the XHTML renderer (and thus what XHTML should the
wysiwyg handle).
Here's an example input:
%%property1 (((
%%property2 **value2**
%%property3 value3
)))
Right now one solution I've found is to serialize the property content
in xwiki syntax 2.0 and output it as a comment in the XHTML renderer:
<!--startproperty %%property1 (((
%%property2 **value2**
%%property3 value3
)))--><!--stopproperty-->
(note: we could have <!--property--> instead of start/stopproperty,
that's a detail)
Then the XHTML parser would use the xwiki syntax 2.0 parser on the
content of the comment to generate events.
Since it's not very trivial to serialize to xwiki syntax in the XHTML
renderer I'd like to know what you think or if you have a better idea.
I guess we could also do something like:
<div class="'xwiki-semantic property1">
<div class="xwiki-semantic property2>
<p>
<strong>value2</strong>
</p>
</div>
<div class="xwiki-semantic property3">
<p>
value3
</p>
</div>
</div>
Note: we would use span for inline semantic properties instead of divs.
And then have a CSS with display:none for ".xwiki-semantic"
The advantage of this latter solution are:
* Easier to implement for the XHTML renderer and XHTML parser
* Is in line with HCARD if we want to support it (and we probably do),
see
http://jira.xwiki.org/jira/browse/XWIKI-3320?focusedCommentId=39554&page=co…
WDYT?
Thanks
-Vincent
Hi,
I am new to XWiki. I was trying to set up virtual wiki using DB2 v9.1 or
v9.5.
First I installed XWiki Enterprise Manager on Tomcat and set up DB2
following the "Installation DB2" guide. After that I tried to create virtual
wikis using XEM. But when I clicked "Create new wiki" link in the XWiki
Enterprise Manager and enter "wikitest" as wiki identifier, it kept
prompting that "A database with this identifier already exists". But the
fact is that I don't have a database named "wikitest" on my DB2. Then I
found out that no matter what I typed in the wiki identifier text box, it
all prompted "A database with this identifier already exists". This prevents
me from creating a virtual wiki.
Can anyone help me out? Thanks very much in advance!
BTW, I can successfully create virtual wikis on MySQL and access them.
Hi devs,
right now we need to hit enter twice in a row to create a new paragraph.
Although I strongly pushed this implementation back in the day, it is
proving to be counter-intuitive for almost all users. After a review of a
number of other tools (including OpenOffice & online text editors) & reading
of posts on the topic, I came to the conclusion that we'd better come back
to the previous behavior for the enter key:
- Hitting enter once creates a new paragraph
- Hitting caps + enter creates a new line in the same paragraph
When writing, users tend to write a number of sentences (most of the time
between 3 and 7 of them) and then hit enter to create a new paragraph. The
issue sometimes encountered is that an user writes a single line, then hits
enter to find out that a lot of spacing is entered between both lines. This
issue can easily be fixed through CSS in the default XWiki Enterprise
distribution (we could use OOo as a source of inspiration for the respective
line heights between 2 lines & 2 paragraphs - right now I'd say the height
between 2 paragraphs is a bit too big).
Additionally, this would "fix" the "issue" currently encountered by users
when they input 2 lines and try to make one of them a title:
- User inputs line of text, hits enter, inputs 2nd line
- User puts caret at the end of first line and selects "Title 1"
- Both lines are turned into a title -> weird
This behavior is unexpected from an end-user point of view and would be
fixed by coming back to the previousbehavior for the enter key.
WDYT?
Guillaume
PS: I'm really sorry about the additional work incurred by my initial lack
of understanding of the role of paragraphs
--
Guillaume Lerouge
Product Manager - XWiki
Skype ID : wikibc
http://guillaumelerouge.com/
Hi,
We've had an interesting discussion with Thomas about the need to
introduce a new onRawText() event in the rendering module to replace
the current begin/endXML() events.
Here's the need (discovered by Ludovic):
* In some cases we want to inject rendered content directly in the
renderer's output. For example there are some cases where we want to
inject HTML directly (in order to bypass parsing)
What we propose:
* Remove the current XML events
* Add a onRawText(Syntax syntax) event and a corresponding RawBlock
block. A raw text is text injected directly in the rendered output
without any parsing/modification. Note that the content depends
completely on the rendered used hence the Syntax parameter.
* Add a new {{raw syntax="syntaxId"}} macro so that users can inject
content in the few cases where it's needed
* Modify the HTML Macro to use RawBlock blocks instead of XMLBlock.
Also add a new "clean=true|false" parameter (defaut is to clean). When
clean = true, we pass the content to the HTML cleaner.
<Implementation note>We still need to parse the content when
wiki=true. We generate RawBlock blocks when we have startElement/
endElement/CDATA/Comment xml parser events.</Implementation note>
This solves a number of issues:
* We have a generic way to inject rendered content directly for the
special cases when it's needed (ex: the user really wants to inject
invalid HTML such as META tags in the body content)
* We remove the XML events which were a bit weird to have in the first
place.
Note that we'll probably need to add some new events in the future
such as one for demarcating a set of blocks (which would translate in
DIV or SPAN in the XHTML renderer for example). This is needed for
example for the Box Macro which is currently using XMLBlock but that's
not completely correct.
WDYT?
Thanks
-Vincent
Hi,
I would like to retrieve the number of document that is viewable by the current user (Meaning it has the access to the document).
How can i modified the following codes to achieve that feature?
#set($query="select count(doc) from XWikiDocument doc")
#set($resultsCount = $xwiki.search($query).get(0))
Thanks in adv,
Colin
Get your preferred Email name!
Now you can @ymail.com and @rocketmail.com
http://mail.promotions.yahoo.com/newdomains/sg/
jvelociter (SVN) wrote:
> Author: jvelociter
> Date: 2009-04-22 02:16:46 +0200 (Wed, 22 Apr 2009)
> New Revision: 18927
>
> Modified:
> platform/web/trunk/standard/src/main/webapp/resources/js/xwiki/xwiki.js
> Log:
> XWIKI-3175 Clean the javascript global object from method and properties that should not be exposed
>
> I think we can safely removed this XWikiAjax method definitely.
Shouldn't it be placed in the deprecated file instead?
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
Hello wikiers,
Congratulation to all of you selected people for working on xwiki projects
and I wish you a nice summer coding and playing with xwiki API !!!
Regards,
Keerthan Muthurasa
Hi Devs,
First of all, sorry about the long email subject :)
Our style filter is working quite nicely and users so far like it very much
:). Still, word documents sometimes contain really really (I mean really)
huge images embedded in them. In such cases since our style filter rips off
height & width attributes of <img> tags, images run way off the page
boundaries (looks very ugly).
Following are the only attributes currently allowed with our style filter:
a --> href, name
img --> alt, src
td --> colspan, rowspan
I think we have to add height & width attributes into this set (under img
tag) because heights & widths are not actually styling attributes (IMO).
Note: We are discussing about cleaning OO generated html content that comes
from a word document, not about general html cleaning.
WDYT?
Thanks.
- Asiri