forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Evrim ULU <ev...@core.gen.tr>
Subject MoinWiki backend to Forrest-0.6
Date Wed, 27 Oct 2004 14:25:46 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I am trying to embed MoinWiki as a backend to Forrest. The main reason
is editing is simple via wiki and owners of any website can alter/update
their sites as they wish.

Good news:
- ----------
I have changed apache-forrest-0.6/src/core/context/sitemap.xmap to :


<map:match pattern="**body-*.html">
~        <map:generate type="text2xml"
src="http://myuser:mypassword@AddressToWiki/{1}{2}?action=raw"/>
~        <map:transform type="lexer"   src="cocoon:/moinwiki.xlex"/>
~        <map:transform type="parser"  src="cocoon:/moinwiki.xgrm"/>
~        <map:transform type="xsltc"
src="{forrest:context}/resources/chaperon/stylesheets/moinwiki2xdoc.xsl">
~            <map:parameter name="name" value="{2}" />
~            <map:parameter name="spaceless-filenames" value="false"/>
~        </map:transform>
~        <map:transform type="idgen"/>
~        <map:transform type="xinclude"/>
~        <map:transform type="linkrewriter"
src="cocoon:/{1}linkmap-{2}.html"/>
~        <map:transform
src="resources/stylesheets/declare-broken-site-links.xsl" />
~        <map:call resource="skinit">
~          <map:parameter name="type" value="document2html"/>
~          <map:parameter name="path" value="{1}{2}.html"/>
~          <map:parameter name="notoc" value="false"/>
~        </map:call>
~      </map:match>

Now it reads all body files from wiki.


Bad news:
- ---------

I'm having trouble with moinwiki links like ["Developer/Regulations"].
Quotes exists after transformation, so they don't work and appear like
http://localhost/%22Developer/Regulastions%22.html after transformation.

I'll try to edit grammer/xslt of chaperon to fix it. Any ideas are welcome.

Also, i'm looking for ideas about generating the site.xml from a wiki
page. I've build a simple setup like below:

http://wikihost/Sitemap?action=raw
- ----------------------------------
= Tab1 =
~ * [Section1|section1.html]
~    * [Section1-1|Section1/link1.html]
= Tab2 =
= Tab3 =

- ----------------------------------

I haven't build the above structure yet. Any ideas are welcome.

Evrim.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFBf6/qR2rUfDW+YFIRAvc+AJ45o236bYvZKLw4VxDFl+frdKrzuACfazKB
7AT09TngKyR7bh1UgG5YfBI=
=sNfA
-----END PGP SIGNATURE-----

Mime
View raw message