Actually I saw that code. The simplest fix I could figure was this...
In the page http://.../xwiki/bin/edit/XWiki/WebRssCode,
I replaced this line
<dc:date>$currentdoc.date</dc:date>
with
<dc:date>$xwiki.formatDate($currentdoc.date, "yyyy-MM-dd'T'HH:mm:ss")</dc:date>
The fix however omits the timezone.
There is java code at http://www.dpawson.co.uk/relaxng/schema/datetime.html
which handles the timezone as well.
The SimpleDateFormat pattern "yyyy-MM-dd'T'HH:mm:ss.SSSZ" is close as it gives
2005-06-29T17:20:46.171-0800
This however does not work because of the missing colon. It needs to
be 2005-06-29T17:20:46.171-08:00
The simplest way seems to be to use commons-lang utilities
DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format(new Date())
Since commons-lang is already part of the distribution is there a easy
way to add this code? I just don't know how to incorporate it in here
at this point due to unfamiliarity with velocity, groovy etc.
Thanks very much.
regards
Sudhir
On 6/29/05, Ludovic Dubost <ludovic(a)xwiki.com> wrote:
>
> Yes.. You need to customize the code in BlogRssCode
>
> http://www.xwiki.com/xwiki/bin/view/XWiki/BlogRssCode?xpage=code
>
> You can get this code and put it in your wiki and modify it.
> The line <dc:date>$currentdoc.display("date", "view", $currentobj)</dc:date>
> Should be changed to some conversion.. I'm not sure which one though
> If you send us some java code that does the conversion and right
> formatting we can adapt it for the scripting
>
> Ludovic
>
> Sudhir Rao a écrit :
>
> >Is there any easy way to change the timestamp format in the rss feed
> >which gets generated without modifying xwiki source code?
> >
> >The field
> ><dc:date>Tue Jun 28 16:31:33 PDT 2005</dc:date>
> >should have been formatted as per the dateTime spec at
> >http://www.w3.org/TR/xmlschema-2/#dateTime
> >
> >The current behavior seems to throw off the date/time sorting in RSS
> >readers as they just ignore the value.
> >
> >A SimpleDateFormat conversion has been given here..
> >
> >http://lists.xml.org/archives/xml-dev/200311/msg00153.html
> >which uses the format
> >"yyyy-MM-dd'T'HH:mm:ss,SSS'Z'"
> >
> >Any thoughts?
> >
> >-Sudhir
> >
> >
> >
> >------------------------------------------------------------------------
> >
> >
> >--
> >You receive this message as a subscriber of the xwiki-users(a)objectweb.org mailing list.
> >To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org
> >For general help: mailto:sympa@objectweb.org?subject=help
> >ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
> >
> >
>
>
> --
> Ludovic Dubost
> XPertNet: http://www.xpertnet.fr/
> Blog: http://www.ludovic.org/blog/
> XWiki: http://www.xwiki.com
> Skype: ldubost AIM: nvludo Yahoo: ludovic
>
>
I am having a problem that I want to resolve before xwiki becomes our
production knowledge base.
I have xwiki set so that you have to log in to view the content. LDAP
is configured in xwiki.cfg. Upon navigation to the login page, it is
displayed in an unformatted manner. You can see the User and Pass
box...but when you go to enter them in it will bring up the style.css.
This displays out as totally illegible and unformatted. Now here's the
kicker. When you hit the back to go to the log in page, it's displayed
correctly. When you hit the forward button, you got it....it's the
front page for the xwiki.
When I reproduce this, which I have before, I can send in some screen
shots of what I am talking about for those of you that may not know. I
just figured this might be a common issue.
xwiki 0.9.840
MySQL 4.1.12
SunOne Web Server 6.1
Thanks,
Tim
Hi,
firstly, thanks to the xwiki team for thier great product!
one question:
is there any "translation support" in xwiki?:
when i see one page with a language preference, i see a specific version of
it (english in my example).
when i've got a portuguese preference, i see the last version of the page
edited with the portuguese label.
can i create a page, and associate with it the related translations?(the
original page and its translations have got the same url):
=> the url is the same for all the translations, but i can see translations
depending on my language preference.
is it the case?(we've created on our wiki, one page per translation.... =>
http://jguard.xwiki.com ).
sincerly yours,
Charles(jGuard team).
Hi all,
I'm interested in learning more about xwiki's macro features.
However this helpful-looking link from the FAQ (on http://www.xwiki.com/xwiki/bin/view/Doc/ ) is broken:
http://www.xwiki.com/xwiki/bin/view/Doc/WhereCanIFindTheSourceForTheDefault…
The error message for that FAQ item is:
com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while parsing velocity page Doc.WhereCanIFindTheSourceForTheDefaultMacroTagsLikeThe Wrapped Exception: Encountered "<EOF>" at line 1, column 70. Was expecting one of: "(" � <WHITESPACE> ...
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:131) at com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:87) at com.xpn.xwiki.render.XWikiRenderingEngine.renderText(XWikiRenderingEngine.java:116) at com.xpn.xwiki.render.XWikiRenderingEngine.renderText(XWikiRenderingEngine.java:93) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:224) at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:735) at com.xpn.xwiki.api.Document.display(Document.java:389)
[...]
Where's the best place to look to learn about macros?
Cheers,
Robin.
hello everybody !
I'd like to design a form with one database select field.
The xwiki standard distribution provides a good basic example with the
Category field within the XWiki.ArticleClass.
But some additional information could be helpful :
- a relational map of all the database tables involved in this application
- the names and descriptions of Hibernate objects corresponding to the
database objects so that I can fully undestand queries like this one :
select prop.value from BaseObject as obj, StringProperty as prop where
obj.className='Blog.Categories' and prop.id.id = obj.id and
prop.id.name='name'
(standard hibernate query for the category field)
- for my current project, I intend to automatically feed this table with
data updated in another database by another application software (CRM in
that case). So it's crucial to know with precision what XWiki requires
when managing "database select fields". Do you know about some existing
developments like this one ?
Thank you by advance for any information you could send to me ...
Pierre Carlier
pcarlier(a)repgroup.net
A start?
------- Forwarded message -------
From: "Marcelo Finkielsztein" <mfinky(a)gmail.com>
To: public-evangelist(a)w3.org
Subject: Fwd: Hippocratic Oath for Webmasters
Date: Mon, 28 Nov 2005 11:36:10 -0000
Hi,
I would like to see specific reference about spyware. Does point number 3
cover that?
Marcelo.
---------- Forwarded message ----------
From: Martin Poulter <M.L.Poulter(a)bristol.ac.uk>
Date: Nov 22, 2005 9:49 AM
Subject: Hippocratic Oath for Webmasters
To: public-evangelist(a)w3.org
Hello everybody,
I one of a small group of professional webmasters in the UK who
have regular physical meetings. We are trying to codify and promote best
practice. I am used to referring people to the W3C's QA efforts,
including the QA Tips page and TimBL's writings in
http://www.w3.org/Provider/Style/ .
However, the QA tips are not ideal for our purposes. They are
addressed to authors and webmasters. We want a statement of best
practice that is intelligible to users (so they recognise that someone is
working to make the web easier for them) and managers (so they
understand why we spend time working to achieve this). This led to the
idea of a "Webmaster Pledge", written as a letter to a user.
This is not a badge that requires a judging panel to enforce
it: I'm not revisiting "Top 5% of web sites". This is more like Buddhist
ethical codes ("I undertake to refrain from...") or maybe the Hippocratic
Oath.
After an initial brainstorming session, I've boiled down a
ten-point, 300-word pledge, which I've included at the foot of this
email. As you can imagine, it's very hard to make something that is in
plain English, technically correct, challenging, attainable and
non-presumptive about the nature of the site (educational, commercial,
personal...) being discussed. For instance, we say that URLs
should be bookmarkable, rather than URIs, because there might be
one-shot URIs used legitimately in some applications such as
e-commerce, but more importantly because the nontechnical audience is
more likely to recognise the term "URL".
A temporary site for the pledge, with annotations and more
background, has been created here:
http://www.economicsnetwork.ac.uk/cgi-bin/wiki.pl/Webmaster_Pledge
I've joined this list because I'd be interested in:
* Comments on the idea of a webmaster pledge
* Suggestions on any important topics that have been missed out
* Improvements to the form of words we have so far (especially ways to
make the first item succinct)
Thanks in advance for comments of any nature.
Webmaster Pledge v0.3
Authored by the HE Academy Technical Group, edited by Martin Poulter
1. Pages on our site will have a clear, consistent structure that lets
you find and use the content no matter whether you are using a
graphical, text-only, speech browser, mobile device or even reading the
page on a printout. Although we cannot guarantee a site will work on all
past, present and future browsers, we aim to be usable with all current
browsers and operating systems.
2. Content on our site will have meaningful URLs and be bookmarkable. If
we move or delete documents, the old URL will be redirected to a
relevant part of the site.
3. Our site will not break the controls on your web browser.
4. Links will give you a reasonable idea of what will happen when you
click on them, and warn you if it requires a large download or a helper
application.
5. We will regularly check for and replace broken links. Content that
isn't marked as archived or given a definite date will be regularly
checked.
6. The document content of the site will be searchable in a way that
supports multiple terms, phrases and combinations of terms. Search
results will show you the location of each file and its relevance to
your search terms.
7. We will not hold personal information about you without your express
permission.
8. We will never show you a bare error message. If there is an error
(e.g. incorrect password, mistyped link), you will be told what the
problem is and what you can do next.
9. We will not make content difficult to read with superfluous music or
animation or intrusive advertising.
10. When you use our site for a transaction, such as making a purchase
or creating a personal account, it will be clear at which stage you are
and what remains to be done.
More explanation of this version at
http://www.economicsnetwork.ac.uk/cgi-bin/wiki.pl/Webmaster_Pledge_v0.3
--
Dr Martin L Poulter Senior Technical Researcher, ILRT, Bristol, UK
Research interests: Philosophy of belief and Bayesian inductive logic
The full experience: http://www.weird.co.uk/martin/
Community blog: http://www.weird.co.uk/blog/
Politics wiki: http://www.infobomb.org/
--
Jim Stuttard
Hello,
Firstly, i'd like to thanx the xwiki team for their great product, i'm
really enjoying it.
One question:
Why couldn't i find my webspace http://chercheursterritoires.xwiki.com
when i look for it into google?
Regards,
Fabien
Hi.
I've tried to upgrad my xwiki within versions mentioned in subject. I've
set xwiki.store.hibernate.updateschema=1 in xwiki.cfg and... upgrade
(probably) failed. Xwiki seems to work as before, but there is an error
in catalina.out; I suppose it has something to do with schema change and
I suppose I will have problems in the future if I ignore it now, right?
Do you have any ideas what could be wrong?
This is the error message.
INFO: Server startup in 4316 ms
11:04:00,629 WARN TP-Processor3 RequestUtils:createActionForm:177 - No FormBeanConfig found under 'view'
11:04:02,159 WARN TP-Processor3 https://xwiki.biuro.contium.pl/xwiki/bin/view/Main/WebHome Configurator:configure:126 - No configuration fou
nd. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/var/www/xwiki-0.9.840/WEB-INF/lib/ehcache-1.1.jar!/ehcach
e-failsafe.xml
11:04:04,292 ERROR TP-Processor3 https://xwiki.biuro.contium.pl/xwiki/bin/view/Main/WebHome XWikiHibernateStore:updateSchema:177 - Schema upd
ate for wiki xwiki
java.lang.IllegalArgumentException: Illegal pattern character 't'
at java.text.SimpleDateFormat.compile(SimpleDateFormat.java:678)
at java.text.SimpleDateFormat.initialize(SimpleDateFormat.java:497)
at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:462)
at com.xpn.xwiki.XWiki.formatDate(XWiki.java:2780)
at com.xpn.xwiki.api.XWiki.formatDate(XWiki.java:646)
at gjdk.com.xpn.xwiki.api.XWiki_GroovyReflector.invoke(XWiki_GroovyReflector.java)
at groovy.lang.MetaMethod.invoke(MetaMethod.java:110)
at groovy.lang.MetaClass.doMethodInvoke(MetaClass.java:1395)
at groovy.lang.MetaClass.invokeMethod(MetaClass.java:318)
at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:143)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:104)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod(ScriptBytecodeAdapter.java:84)
at Script1.run(Script1.groovy:70)
at com.xpn.xwiki.render.groovy.GroovyTemplateEngine$1.writeTo(GroovyTemplateEngine.java:255)
at com.xpn.xwiki.render.groovy.GroovyTemplateEngine$1.toString(GroovyTemplateEngine.java:268)
at com.xpn.xwiki.render.groovy.XWikiGroovyRenderer.evaluate(XWikiGroovyRenderer.java:94)
at com.xpn.xwiki.render.groovy.XWikiGroovyRenderer.render(XWikiGroovyRenderer.java:128)
at com.xpn.xwiki.render.XWikiRenderingEngine.renderText(XWikiRenderingEngine.java:116)
at com.xpn.xwiki.render.XWikiRenderingEngine.renderText(XWikiRenderingEngine.java:93)
at com.xpn.xwiki.render.XWikiRenderingEngine.renderDocument(XWikiRenderingEngine.java:85)
at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:220)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:151)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:267)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:197)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175)
at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:89)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:223)
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:125)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:806)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:87)
--
"First they ignore you. Then they laugh at you. Then they
fight you. Then you win." - Mohandas Gandhi.
hello,
i'm in china. And we need to work with a developpement team in france
for a school project on a wiki. But the web in our university is very
slow and it's a pain to access to french website.
Is it possible to setup a wiki server in china and one in france using
the XWiki P2P?
Jérémi
--
Blog: http://www.jeremi.info
LinkedIn: https://www.linkedin.com/profile?viewProfile=&key=1437724http://www.xwiki.org
skype: jeremi23 -- msn et gtalk : jeremi23(a)gmail.com
hi.
i solved the problem by copying the propertie-files into the folder.
the script now executes without any errormessage.
but no data is written into the remote database.
i think i have to add the jdbc-drivers(oracle 10g) somewhere to the
env.sh file, right?
my os is linux, the server's running linux too and the remote oracle db
is 9i.
florian
On Tue, 2005-11-15 at 00:33 +0100, Erwan Arzur wrote:
> it looks related to your locale settings. Could you be a bit more
> specific about the environment ?
>
> O/S, oracle version ?
>
> You cant try to unset the LANG environment variable ?
>
> Erwan
> On 11/9/05, Florian Astl <divil(a)aon.at> wrote:
> hi!
>
> i'm trying to import a database into an oracle database as
> described on
> http://www.xwiki.org/xwiki/bin/view/AdminGuide/Backup#Import
> using the latest svn code.
>
> this is the errormessage i get:
>
> > ./import.sh
> > Starting import
> > Starting xwiki
> > log4j:WARN No appenders could be found for logger
> (com.xpn.xwiki.store.XWikiCacheStore ).
> > log4j:WARN Please initialize the log4j system properly.
> > Import database xwiki
> > Reading documents
> > Installing documents
> > Caught: java.util.MissingResourceException: Can't find
> bundle for base name ApplicationResources, locale
> > at
> xwiki.export.import.run(/home/florian/Desktop/backup/import.groovy:0)
> > at
> xwiki.export.import.main(/home/florian/Desktop/backup/import.groovy)
>
> is there any way to solve this?
>
> thanks in advance,
> florian
>
>
>
>
>
>
> --
> You receive this message as a subscriber of the
> xwiki-users(a)objectweb.org mailing list.
> To unsubscribe: mailto: xwiki-users-unsubscribe(a)objectweb.org
> For general help: mailto:sympa@objectweb.org?subject=help
> ObjectWeb mailing lists service home page:
> http://www.objectweb.org/wws
>
>
>