You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Stephan Michels <st...@vern.chem.tu-berlin.de> on 2002/05/10 15:55:39 UTC
[ANN] Chaperon examples
Hi,
I have read your mail about wiki("[vote] cocoon-docs") and text fragment
transformer ("A Transformer in progress...."). So I took some time
to make some examples of my chaperon parser. Perhabs you are interested
in?
Personally, we use this parser to transform latex to html. So we have the
the strength of cocoon and a easy to write format for authors.
I have post the files via bugzilla(#8975).
Thank you for your attention, Stephan Michels.
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
RE: [ANN] Chaperon examples
Posted by Vadim Gritsenko <va...@verizon.net>.
> From: Stephan Michels [mailto:stephan@vern.chem.tu-berlin.de]
...
> My question is "persistent-store" only reserved for the cache of the
> pipelines?
No, use either transient-store or persistent-store for anything you
like.
Vadim
> The problem is that the generation process of the parser tables
> took some time, and I would prefer to store the parser tables in the
> persistent store.
>
> Stephan Michels.
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: [ANN] Chaperon examples
Posted by Stephan Michels <st...@vern.chem.tu-berlin.de>.
On Mon, 13 May 2002, Bertrand Delacretaz wrote:
> Hi Stephan,
>
> I had a look at your bugzilla(#8975) examples - great stuff!
>
> IMHO an additional wiki generator could be useful to generate XHTML
> from existing text files, like:
>
> <map:generator name="wiki-generator"
> src="net.sourceforge.chaperon.cocoon.TextParserGenerator"
> logger="sitemap.generator.wikiparsergenerator">
> <grammar>-//Chaperon//grammar wiki 1.0//EN</grammar>
> </map:generator>
>
> <map:match pattern="wiki/*.html">
> <map:generate type="wiki-generator" src="wiki-data/{1}.txt"/>
> <map:transform src="stylesheets/wiki2html.xsl"/>
> <map:serialize type="html"/>
> </map:match>
>
> Also, I found two small problems with the wiki grammar:
>
> a) bullet text must be contained on a single line:
>
> * bullet 1
> * bullet 2, if we want this to continue it has to stay
> on a single line, this line will not be in the <LI> element.
>
> b) Links at the start of a line are not parsed correctly:
>
> [http://www.perdu.com] right at the start of a line gives a parsing error.
>
> Thanks for your work!
Thank you,
I will fix this in the near future, but I must first change the caching
strategy.
My question is "persistent-store" only reserved for the cache of the
pipelines? The problem is that the generation process of the parser tables
took some time, and I would prefer to store the parser tables in the
persistent store.
Stephan Michels.
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: [ANN] Chaperon examples
Posted by Bertrand Delacretaz <bd...@codeconsult.ch>.
Hi Stephan,
I had a look at your bugzilla(#8975) examples - great stuff!
IMHO an additional wiki generator could be useful to generate XHTML
from existing text files, like:
<map:generator name="wiki-generator"
src="net.sourceforge.chaperon.cocoon.TextParserGenerator"
logger="sitemap.generator.wikiparsergenerator">
<grammar>-//Chaperon//grammar wiki 1.0//EN</grammar>
</map:generator>
<map:match pattern="wiki/*.html">
<map:generate type="wiki-generator" src="wiki-data/{1}.txt"/>
<map:transform src="stylesheets/wiki2html.xsl"/>
<map:serialize type="html"/>
</map:match>
Also, I found two small problems with the wiki grammar:
a) bullet text must be contained on a single line:
* bullet 1
* bullet 2, if we want this to continue it has to stay
on a single line, this line will not be in the <LI> element.
b) Links at the start of a line are not parsed correctly:
[http://www.perdu.com] right at the start of a line gives a parsing error.
Thanks for your work!
-Bertrand
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org