cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Upayavira" ...@upaya.co.uk>
Subject Re: ValidatingTransformer (WAS RE: TidySerializer)
Date Wed, 04 Jun 2003 10:20:52 GMT
On 4 Jun 2003 at 10:28, Conal Tuohy wrote:

> Joerg Heinicke wrote:
> 
> > Ok, reason accepted :) But what about an extra validating
> > transformer as
> > last pipeline step? Seems to make more sense IMO.
> 
> YES! This could be VERY useful: a transfomer that could validate the
> output of some pipeline stage against a DTD or other schema could be a
> great help for debugging. You wouldn't have to download the file and
> validate it with an external tool. It might even have a role in
> production systems for validating input from forms, web services etc?
> 
> <map:transform type="dtd-validator">
>  <map:parameter name="dtd" value="dtd/stage-1.dtd"/>
> </map:transform>
> 
> 
And then you add that transformer into a view, so you can access 
page.html?cocoon-view=validate 
to find out whether the page validates. That'd be neat.

Upayavira

Mime
View raw message