You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by David Crossley <cr...@indexgeo.com.au> on 2002/11/15 06:21:22 UTC
Re: [VOTE] build-time XML validation via RELAX NG
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
Re: build-time XML validation via RELAX NG
Posted by David Crossley <cr...@indexgeo.com.au>.
I had a go at integrating those validation targets into
the build. It seems to work nicely.
There is a basic document explaining it at
userdocs/concepts/validation.xml
So validation of core configuration files and xdocs
happens automatically during the build. Currently doing
cocoon.roles, all sitemap.xmap, all *.xsl stylesheets,
and all xdocs/*.xml
The targets can also still be called from the command-line.
It does not yet happen automatically with the default
build target "all". My head started going in circles with
the complex build.xml file.
I am still not 100% sure that things are happening at
the appropriate places during the build.
--David
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: [VOTE] build-time XML validation via RELAX NG
Posted by David Crossley <cr...@indexgeo.com.au>.
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
Re: [VOTE] build-time XML validation via RELAX NG
Posted by Bernhard Huber <be...@a1.net>.
hi,
>
> [+1] Call 'validate-config' by default during the build.
+1 from me, as it helps to detect problems as early as possible,
and not at document request-time.
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: [VOTE] build-time XML validation via RELAX NG
Posted by Marcus Crafter <cr...@fztig938.bank.dresdner.net>.
On Fri, Nov 15, 2002 at 08:06:53AM +0100, Carsten Ziegeler wrote:
>
> David Crossley wrote:
> > So, let us vote ...
> >
> > [+1] Call 'validate-config' by default during the build.
> >
> Validating documents before deployment is a valuable thing,
> we use this during our deployment via ant as well, so:
>
> +1 - if I can turn it off via properties.xml like you proposed.
+1
Cheers,
M.
--
.....
,,$$$$$$$$$, Marcus Crafter
;$' '$$$$: Computer Systems Engineer
$: $$$$: ManageSoft GmbH
$ o_)$$$: 82-84 Mainzer Landstrasse
;$, _/\ &&:' 60327 Frankfurt Germany
' /( &&&
\_&&&&'
&&&&.
&&&&&&&:
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: [VOTE] build-time XML validation via RELAX NG
Posted by Bertrand Delacretaz <bd...@codeconsult.ch>.
On Friday 15 November 2002 08:06, Carsten Ziegeler wrote:
>. . .
> +1 - if I can turn it off via properties.xml like you proposed.
+1
Maybe the "validate-config" target should use <echo> to explain how it can be
disabled?
(I didn't test it, maybe it's done so already)
-Bertrand
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
RE: [VOTE] build-time XML validation via RELAX NG
Posted by Carsten Ziegeler <cz...@s-und-n.de>.
David Crossley wrote:
> So, let us vote ...
>
> [+1] Call 'validate-config' by default during the build.
>
Validating documents before deployment is a valuable thing,
we use this during our deployment via ant as well, so:
+1 - if I can turn it off via properties.xml like you proposed.
Carsten
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: [VOTE] build-time XML validation via RELAX NG
Posted by Diana Shannon <sh...@apache.org>.
On Friday, November 15, 2002, at 12:21 AM, David Crossley wrote:
> [+1] Call 'validate-config' by default during the build.
+1 Quite helpful!
Diana
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org