You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Johan Andries <ja...@schaubroeck.be> on 2003/12/01 10:24:44 UTC
wiki syntax support
Hello,
I've been experimenting a bit with Forrest support of Wiki files. I was
wondering whether this support has already stabilized or not? For example,
when I want to include the attached file in a Forrest site, I get an error
like the one below.
--snip--
net.sourceforge.chaperon.process.ProcessingException: Unexpected token
titleitem
["!"], expected tokens: line source bulleteditem numbered1item numbered2item
num
bered3item tabletitleitem link anchor text emitem strongitem codeopenitem :
file
:/C:/test/woud/wiki/build/tmp/context/content/xdocs/wiki/WikiTemplates.cwiki
: 1:
1506
at
net.sourceforge.chaperon.adapter.sax.ParserProcessorAdapter.startElem
ent(ParserProcessorAdapter.java:290)
--snip-
Same thing happens with other, simpler files. The idea is to have a JSPWiki
site in order to allow easy content editing, and to have a Forrest site to
do the rendering. Actually I did a manual check of the files i've been using
and I didn't find any unsupported wiki tags. Anyone else done similar
experiments with the JSPWiki-Forrest combination?
Kind regards,
Johan Andries
Schaubroeck WdC
RE: wiki syntax support
Posted by Johan Andries <ja...@schaubroeck.be>.
Hi Nicola,
The problem was indeed the nested title tags.
Just a small remark: wiki syntax support in Forrest was a great idea! (makes
simple content writing much easier)
Regards
Johan
-----Oorspronkelijk bericht-----
Van: news [mailto:news@sea.gmane.org] Namens Nicola Ken Barozzi
Verzonden: maandag 1 december 2003 10:28
Aan: forrest-dev@xml.apache.org
Onderwerp: Re: wiki syntax support
Johan Andries wrote:
> Hello,
>
> I've been experimenting a bit with Forrest support of Wiki files. I was
> wondering whether this support has already stabilized or not?
I'm using it for the Incubator website, and I have been updating and
patching it recently. It should work.
> For
> example, when I want to include the attached file in a Forrest site, I
> get an error like the one below.
>
>
> --snip--
>
> net.sourceforge.chaperon.process.ProcessingException: Unexpected token
> titleitem
>
> ["!"], expected tokens: line source bulleteditem numbered1item
> numbered2item num
>
> bered3item tabletitleitem link anchor text emitem strongitem
> codeopenitem : file
> --snip-
>
> Same thing happens with other, simpler files. The idea is to have a
> JSPWiki site in order to allow easy content editing, and to have a
> Forrest site to do the rendering. Actually I did a manual check of the
> files i've been using and I didn't find any unsupported wiki tags.
> Anyone else done similar experiments with the JSPWiki-Forrest combination?
Since the latest wiki syntax has nested section support, if you don't
use a correct combination of title tags it doesn't work.
For example:
!!! Title1
...
!! Title2
...
! Title3
Is ok.
!!! Title1
...
! Title2
...
!! Title3
Is not ok, as a single ! needs a preceding !!.
Check if this is the case, as looking at your attachment is seems so.
--
Nicola Ken Barozzi nicolaken@apache.org
- verba volant, scripta manent -
(discussions get forgotten, just code remains)
---------------------------------------------------------------------
Re: wiki syntax support
Posted by Nicola Ken Barozzi <ni...@apache.org>.
Johan Andries wrote:
> Hello,
>
> I’ve been experimenting a bit with Forrest support of Wiki files. I was
> wondering whether this support has already stabilized or not?
I'm using it for the Incubator website, and I have been updating and
patching it recently. It should work.
> For
> example, when I want to include the attached file in a Forrest site, I
> get an error like the one below.
>
>
> --snip--
>
> net.sourceforge.chaperon.process.ProcessingException: Unexpected token
> titleitem
>
> ["!"], expected tokens: line source bulleteditem numbered1item
> numbered2item num
>
> bered3item tabletitleitem link anchor text emitem strongitem
> codeopenitem : file
> --snip—
>
> Same thing happens with other, simpler files. The idea is to have a
> JSPWiki site in order to allow easy content editing, and to have a
> Forrest site to do the rendering. Actually I did a manual check of the
> files i’ve been using and I didn’t find any unsupported wiki tags…
> Anyone else done similar experiments with the JSPWiki-Forrest combination?
Since the latest wiki syntax has nested section support, if you don't
use a correct combination of title tags it doesn't work.
For example:
!!! Title1
...
!! Title2
...
! Title3
Is ok.
!!! Title1
...
! Title2
...
!! Title3
Is not ok, as a single ! needs a preceding !!.
Check if this is the case, as looking at your attachment is seems so.
--
Nicola Ken Barozzi nicolaken@apache.org
- verba volant, scripta manent -
(discussions get forgotten, just code remains)
---------------------------------------------------------------------