You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Conal Tuohy <co...@paradise.net.nz> on 2003/06/04 00:28:43 UTC
ValidatingTransformer (WAS RE: TidySerializer)
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>
Re: ValidatingTransformer (WAS RE: TidySerializer)
Posted by Upayavira <uv...@upaya.co.uk>.
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