Return-Path: Delivered-To: apmail-forrest-dev-archive@www.apache.org Received: (qmail 86962 invoked from network); 21 Oct 2005 02:43:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Oct 2005 02:43:06 -0000 Received: (qmail 26616 invoked by uid 500); 21 Oct 2005 02:43:05 -0000 Delivered-To: apmail-forrest-dev-archive@forrest.apache.org Received: (qmail 26567 invoked by uid 500); 21 Oct 2005 02:43:04 -0000 Mailing-List: contact dev-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@forrest.apache.org List-Id: Delivered-To: mailing list dev@forrest.apache.org Received: (qmail 26556 invoked by uid 99); 21 Oct 2005 02:43:04 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Oct 2005 19:43:04 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [65.77.211.84] (HELO www2.kc.aoindustries.com) (65.77.211.84) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Oct 2005 19:43:04 -0700 Received: from fo2.kc.aoindustries.com (www2.kc.aoindustries.com [65.77.211.84]) by www2.kc.aoindustries.com (8.13.1/8.13.1) with ESMTP id j9L2gesU008849 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 20 Oct 2005 21:42:40 -0500 Received: from localhost (localhost [[UNIX: localhost]]) by fo2.kc.aoindustries.com (8.13.1/8.13.1/Submit) id j9L2geAG008791 for dev@forrest.apache.org; Thu, 20 Oct 2005 21:42:40 -0500 X-Authentication-Warning: fo2.kc.aoindustries.com: indexgeo set sender to crossley@apache.org using -f Date: Fri, 21 Oct 2005 12:42:21 +1000 From: David Crossley To: dev@forrest.apache.org Subject: Re: [jira] Commented: (FOR-680) The jspwiki parser renders nested lists invalid Message-ID: <20051021024221.GA26932@igg.indexgeo.com.au> References: <1949244896.1128775728539.JavaMail.jira@ajax.apache.org> <001501c5cf17$b3bf18d0$0400a8c0@madaboutipv6> <007601c5d188$a1bc3230$0400a8c0@madaboutipv6> <006901c5d372$fb1420e0$0400a8c0@madaboutipv6> <20051017234718.GA6586@igg.indexgeo.com.au> <003c01c5d56e$fd307f60$0400a8c0@madaboutipv6> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <003c01c5d56e$fd307f60$0400a8c0@madaboutipv6> User-Agent: Mutt/1.4i X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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