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
>
>
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
Hello:
I´m using Xwiki and I have read the documentation but I have two questions:
1. I need to dynamically group wiki entries using a wikipedia like category tag. Example:
--- MySpace.Rabbit
[Category: Animals]
On another entry
--- MySpace.Horse
[Category: Animals]
In wikipedia the category tag automatically adds these two entries in the Animals Category. One entry can belong in many categories (which rules out using xwiki spaces. Any tips on implementing this?
2. Im new to portlets and I´m using liferay as a portlet engine. How could I adapt Xwiki as a portlet? It´s listed as a future but I haven´t seen any documentation about it!
Thanks in advance!
Hello:
I�m using Xwiki and I have read the documentation but I have two questions:
1. I need to dynamically group wiki entries using a wikipedia like category tag. Example:
--- MySpace.Rabbit
[Category: Animals]
On another entry
--- MySpace.Horse
[Category: Animals]
In wikipedia the category tag automatically adds these two entries in the Animals Category. One entry can belong in many categories (which rules out using xwiki spaces. Any tips on implementing this?
2. Im new to portlets and I�m using liferay as a portlet engine. How could I adapt Xwiki as a portlet? It�s listed as a future but I haven�t seen any documentation about it!
Thanks in advance!
Hi,
I've protected various spaces in my wiki to be viewed only by
people in the
specified group. To not show the links in the menu, I've included the
links in
an if clause:
#if($xwiki.xWiki.getRightService().hasAccessLevel("view",
$context.getUser(),"Intranet.Main", $context.context))
* [Intranet>Intranet.Main]
#end
This works fine, when I'm viewing the Menu in Main/WebHome, but as
soon as I decend into
Feedback/Main this entry (and all others which are protected) are not
displayed any more.
Is this the correct way to hide a link?
Thanks
Christian van der Leeden
-----------------------------------------
Christian van der Leeden
Mob: +49-163-3747111
Tel: +49-89-189488-66
leeden(a)logicunited.com
Hello
I've got a xwiki installation that contains vietnamese characters encoded in
UTF-8.
I can see the characters without problem in my browser.
However it seems I canno't generate PDF when there are vietnamese characters.
I've got the below exception in Tomcat. You can test it by your self on
http://www.cosgov.org
Best regards
--
Xavier MOGHRABI - Consortium ObjectWeb
Email: xavier.moghrabi at objectweb.org
Phone: +33 4 76 61 52 35 - Skype ID: xavier.moghrabi.bureau
--
line 5 column 1 - Warning: <html> has XML attribute "xml:lang"
line 49 column 316 - Warning: <table> lacks "summary" attribute
line 54 column 1 - Warning: replacing illegal character code 135
10:07:06,335 WARN TP-Processor17
http://www.cosgov.org/xwiki/bin/pdf/Main/WebHome ViewEditAction:execute:239 -
Uncaught exception: Error number 12003 in 12: XSL Transformation Failed
Wrapped Exception: Invalid byte 3 of 3-byte UTF-8 sequence.
com.xpn.xwiki.XWikiException: Error number 12003 in 12: XSL Transformation
Failed
Wrapped Exception: Invalid byte 3 of 3-byte UTF-8 sequence.
at
com.xpn.xwiki.pdf.impl.PdfExportImpl.applyXsl(PdfExportImpl.java:169)
at
com.xpn.xwiki.pdf.impl.PdfExportImpl.convertXHtmlToXMLFO(PdfExportImpl.java:147)
at
com.xpn.xwiki.pdf.impl.PdfExportImpl.exportXHtml(PdfExportImpl.java:79)
at
com.xpn.xwiki.pdf.impl.PdfExportImpl.exportHtml(PdfExportImpl.java:108)
at com.xpn.xwiki.pdf.impl.PdfExportImpl.export(PdfExportImpl.java:122)
at
com.xpn.xwiki.pdf.impl.PdfExportImpl.exportToPDF(PdfExportImpl.java:112)
at com.xpn.xwiki.XWikiService.renderPDF(XWikiService.java:892)
at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:168)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:307)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:748)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:678)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:871)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Wrapped Exception:
java.io.UTFDataFormatException: Invalid byte 3 of 3-byte UTF-8 sequence.
at org.apache.xerces.impl.io.UTF8Reader.invalidByte(Unknown Source)
at org.apache.xerces.impl.io.UTF8Reader.read(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
...
Hi,
I'm trying to protect different sections from my wiki from being
accessed by all
users. I've created a Group IntranetGroup, (so the page XWiki/
IntranetGroup)
and added myself (XWiki.leeden) to the list.
I've modified the space access rights for Intranet.Main to allow
view,edit,comment for all
users in group XWiki.IntranetGroup. But when I access this page as
user leeden
I can't view it (permission denied). If I add the user XWiki.leeden
directly to the
rights entry, it works. (If I use XWiki.XWikiAllGroup it works fine,
too)
How can I check if I've set up the groups all right? Do I need other
permissions for
the XWiki.IntranetGroup? E.g. is there a way to programmatically (by
velocity template?)
or list in the Users listing all groups a user belongs to?
Thanks
Christian
P.S.: Thanks for the help before
-----------------------------------------
Christian van der Leeden
Mob: +49-163-3747111
Tel: +49-89-189488-66
leeden(a)logicunited.com
Hi XWiki users!
I'm happy to announce that the Mandriva Club web site, an online
community of 25000 members sharing their knowledge about the Mandriva
Linux distro is now officially available in beta stage at
http://club-beta.mandriva.com
Read the announcement at
http://club-beta.mandriva.com/xwiki/bin/view/Main/ClubV2BetaLaunch
We've developed minor improvements that we will put to the developer
list very soon.
Kudos and many thanks to XWiki team and to all contributors!
Cheers,
Stéphane
Hello
I don't success to make my xWiki Multi Lingual.
I activated in the XWiki.Preferences, paremeters sections the option
Multi Lingual set to Yes.
Add fr in language section with english like this : "en fr"
But it doesn't add the "fr" language in the home page . I can only see "en".
I modify a page but adding this '?language=fr' to the URL, it modifies the
content for en too.
Do you know what I did wrong ?
--
Xavier MOGHRABI - Consortium ObjectWeb
Email: xavier.moghrabi at objectweb.org
Phone: +33 4 76 61 52 35 - Skype ID: xavier.moghrabi.bureau