forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Turner <je...@apache.org>
Subject Re: XML validation
Date Mon, 04 Nov 2002 09:31:20 GMT
On Mon, Nov 04, 2002 at 03:39:06PM +1100, David Crossley wrote:
> Jeff Turner wrote:
> > David Crossley wrote:
> > > Jeff Turner wrote:
> > > > David Crossley wrote:
> > > <snip>
> > > > > I commenced the RELAX NG validation stuff. For starters
> > > > > it is doing skinconf.xml
> > > > 
> > > > Good stuff..  I'll write a tabs.xml validator too, since I had to loosen
> > > > the DTD contract to support @href.
> > > > 
> > > > > I am not sure where to put it in the build. At the moment
> > > > > it is in target "init-props". Later we will probably want to
> > > > > validate other things, so somewhere different may be better.
> > > > 
> > > > 'validate' target perhaps? :)
> > > 
> > > I tried there, but i think that i found that it needed
> > > to happen earlier in the build.
> > 
> > I've changed forrest.build.xml so 'validate' is called earlier, and then
> > moved the RNG stuff into it.  Seems to work okay..
> 
> No it doesn't. It was better where i had it.
> 
> Try deliberately breaking your project's skinconf.xml then 'forrest'
> command reports some un-intelligible errors at 'load-project-props'
> target. The conf file gets validated by RELAX NG later on. Too late.
> That is why it was at 'init-props' target.

Oh okay.  Should be fixed now.  I've broken the skinconf validation into
a 'validate-skinconf' target, which is depended on by the <xmlproperty>
task.

--Jeff


> --David
> 

Mime
View raw message