cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Turner <je...@apache.org>
Subject Re: Strengthening setup() contract
Date Thu, 20 Mar 2003 02:15:17 GMT
On Wed, Mar 19, 2003 at 04:40:20PM +0100, Sylvain Wallez wrote:
> Jeff Turner wrote:
> 
> >At that level, there isn't enough info to provide a user-friendly error
> >message.  I think the best solution is to add a check in the
> >treeprocessor's ReadNodeBuilder.  I've now got it displaying:
> >
> >  Reader at
> >  file:/home/jeff/apache/xml/xml-forrest/build/webapp/sitemap.xmap:135:50
> >  must have a 'src' attribute
> > 
> >
> 
> Same applies to readers : you may have some readers that don't need an 
> 'src' attribute. Please, let this be handled by the components that 
> actually require it.

Bugger ;P

Perhaps components should provide the container with a mini schema,
specifying what they expect from a Configuration object.  Then the
container could validate the component's input, and generate meaningful
error messages.

I'll have a play and maybe follow up on avalon-dev.

thanks,

--Jeff

> Sylvain
> 

Mime
View raw message