Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 25505 invoked by uid 500); 19 Nov 2002 01:44:58 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 25491 invoked from network); 19 Nov 2002 01:44:57 -0000 Subject: Re: [VOTE] build-time XML validation via RELAX NG From: David Crossley To: cocoon-dev@xml.apache.org In-Reply-To: <1037337684.12714.64534.camel@ighp> References: <1035953501.1245.2838.camel@ighp> <1037337684.12714.64534.camel@ighp> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.3 (1.0.3-6) Date: 19 Nov 2002 12:45:02 +1100 Message-Id: <1037670303.12714.111229.camel@ighp> Mime-Version: 1.0 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N We had six people vote: all +1 So i have added it to the ToDo list. Now, to everyone who voted, and anyone else. We need help to get this target integrated into the build. There are some notes inside build.xml and basically it needs to come early in the build process but after the sitemap.xmap files have been automatically constructed. There is also some new work by Colin Adams (see Bug 14581) to extend this, adding Schematron rules to the sitemap.rng to conduct even better validation of sitemaps. I suppose that we should get the main "validate-config" target added soon, then follow up with adding Colin's new work. This is probably a bad time, with people away at either the Cocoon GetTogether or Apachecon. Anyway, i am making sure that the issue stays on our agenda. --David David Crossley wrote: > I presume that we need to vote on stuff like this. > Is that so? Anyway here goes ... > > The experimental build target './build.sh validate-config' > is working nicely to validate important core configuration > files. It is currently processing these ... > * all book.xml instances > * all cocoon.roles instances > * all stylesheets (yes all 219 *.xsl) > * all sitemap.xmap instances (but not any other *.xmap) > > I reckon that it should be called by default during the > build. This would mean calling the target from elsewhere > early in the process. The user can switch it all off via > properties.xml > > So, let us vote ... > > [+1] Call 'validate-config' by default during the build. > > > Here is the proposal thread if you need it: > http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=103595545802339 > > --------------------------- > > From: David Crossley > > To: cocoon-dev > > Subject: [PROPOSAL] build-time XML validation via RELAX NG > > Date: 30 Oct 2002 15:51:21 +1100 > > > > Many thanks to the excellent work from Colin Adams > > to prepare the draft sitemap RNG grammar. > > > > There is now a "validate" target in the main build.xml > > of head 2.1 CVS only. Call it explicitly with > > ./build.sh validate ... no other targets depend on it yet. > > > > Please try it out. Build-time validation is being done > > for **/sitemap.xmap and **/cocoon.roles > > > > The sitemaps and/or the draft RNG grammar now need > > tweaking and we need RNG grammars for other config files. > > > > If people are happy with this infrastructure, then we can > > subsequently vote whether to enable it implicitly during > > the build. --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org