forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fabio Rinaldi" <>
Subject Minimal MoinMoin
Date Fri, 03 Sep 2004 16:07:22 GMT

Dear developers,

I have noticed a little mistake in the wiki2xdoc transformation that I
submitted last week. This prevents correct rendering in some
cases. These are the required changes (in wiki2xdoc.xsl):

<   <xsl:apply-templates select="st:document/st:subsubsections/st:subsubsection"/>
<   <xsl:apply-templates select="st:document/st:subsections/st:subsection"/>
>   <xsl:apply-templates select="st:document/st:subsubsections/st:subsubsection" mode="paragraph"/>
>   <xsl:apply-templates select="st:document/st:subsections/st:subsection" mode="paragraph"/>

Additionally, you can find attached a grammar which accepts
"MoinMoinWiki" format, and the corresponding xsl transformation to
xdoc. Again, no extensive testing has been done, some at least would
be needed. The only document which I have tested it with, is the

In order to test it, I have inserted the following in "forrext.xmap":

        <map:when test="{project:content.xdocs}{uri}.mwiki">
          <map:match type="regexp" pattern="^(.*?)([^/]*).xml$">
            <map:generate type="text2xml" src="{project:content.xdocs}{1}{2}.mwiki" />
            <map:transform type="lexer"   src="cocoon:/mwiki.xlex"/>
            <map:transform type="parser"  src="cocoon:/mwiki.xgrm"/>
            <map:transform type="xsltc" 
              <map:parameter name="name" value="{2}" />
              <map:parameter name="spaceless-filenames" value="true"/>
            <map:serialize type="xml-document"/>

Some of the remaining problems are the following

* underline (how to represent it in forrest xml?)
* Wiki identifiers (Mixed capitalization) need to be converted to links
* internal wiki identifier "wiki:" 
  (this is simply replaced by "http://" at the moment)
* tables need better formatting
* smilies are not converted to images

Hope it is helpful,

View raw message