Jason van Zyl wrote:
On 4 Dec 07, at 2:44 AM 4 Dec 07, Thomas Mortagne
wrote:
Hi all,
One Codehaus (
http://www.codehaus.org/) need to eventually use XWiki
as main web site engine would be for us to implement an HTML export
feature.
I made some work on this and I propose to commit on 1.3 (Sergiu just
created the 1.2 branch) a new ExportAction (like the pdf/rtf one) that
handle HTLM/ZIP export (
http://jira.xwiki.org/jira/browse/XWIKI-564):
- support a range a multiwiki pages in view mode without request
parameters
- add skin dependencies in the package
- add attachments in the package
- modify links targeting skin, attachment and exported pages in
exported pages (using a custom URL factory)
- package all this in a zip file
So will this be a single action that I can run?
Also can I control the structure of the exported HTML? I would like to
be able to apply any CSS to the site that is output.
You can always add &skin=XWiki.MyExportSkin to the URL in order to
generate the HTML with a different skin, where skin involves both the
HTML structure of the document and css. What it can't change is the HTML
generated by the wiki code, but an XSL could fix this.
As for Doxia filters, that's on the way, but still far from the 1.2
release...
Can I trigger this with a webservice call?
If by webservice you mean SOAP, then not yet... If you mean REST, then
sure. If you mean XmlRpc, then just ask for it strongly enough and it
will be available.
Those are my use cases. I know, very demanding :-)
But this would allow integration into existing system to that XWiki
could be integrated into any existing system.
> WDYT ?
>
Sergiu