forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Crossley <cross...@apache.org>
Subject Re: [jira] Commented: (FOR-680) The jspwiki parser renders nested lists invalid
Date Fri, 21 Oct 2005 02:42:21 GMT
Gav.... wrote:
> Thanks, got the wiki working, now for the next part.
> 
> In trying to correct the nested lists rendering, I altered the 
> wiki2xdoc.xsl, sure
> enough the changes I made were carried across into the final output, but 
> were
> still incorrect. I am thinking that the problem may lie elsewhere but I can 
> not
> find where 'elsewhere' is at the moment.
> 
> Having gone through what seems like every file in the plugin I can not see 
> where
> the problem lies at the moment. I will keep at it but wondered if anyone who
> knows the plugin better might have a better idea where to look (who knows
> wiki2xdoc.xsl may be that place).
> 
> I have looked in wiki.grm and seems ok.
> I have looked at the source sample file jspwiki-sample.jspwiki and seems ok.
> 
> Anywhere else I should be looking ?

Don't forget the sitemaps too. They build a parser
out of the grammar and then apply it to the text.
plugins/...input.wiki/input.xmap lines 55 and 56
and then either
plugins/...input.wiki/input.xmap line 93
or
webapp/sitemap.xmap line 326
(i am not sure which).

Change the wiki/input.xmap at line 91 to let
the pipeline be external, then view
localhost:8888/wiki.xlex

Perhaps the wiki.grm is not quite correct or too
strict. Wiki documents are very fragile. Perhaps
there is an additional space (or some such) before
or after the bullet item in the source file.

Also try looking at the intermediate pipelines
to see if xml is being created properly at each step
of the way.

The easiest way to do that is to use the
Cocoon Sitemap Profiler:
http://forrest.apache.org/docs_0_80/howto/howto-dev.html#debug

Otherwise add an xml serializer at certain points
in wiki/input.xmap and comment-out the remainder
of the map:match, then view it at
localhost:8888/samples/jspwiki-sample.xml

You are a glutton for punishment :-) First you pick
an i18n-related issue which turned complex, now
taking on Chaperon/Wiki. Only persist if it is fun
for you or if you have a need. Thanks anyway.

-David

Mime
View raw message