cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Voigt, Bjoern (EXTERN: AUEL)" <>
Subject Validation with DTD
Date Thu, 15 Mar 2007 12:02:07 GMT
Moin Cocooners, 

I have a Question about the ValidationTransformer. I have serveral (about 2
XML-Files and Schema/DTD for it ;-) ... I want to transform it xslt, but
have to validate 
it before. I tried to generate a schema with XML-Spy and validate it with
ValidationTransformer. But I had to much changes and so I decided to use an

Is the current Version of ValidationTransformer able to validate with DTDs?
documentation says yes. ->

<map:resource name='html'>
        <map:generate src='my-file.xml'/>
        <map:transform type='validate' src='validation/blabla.dtd'>
                <map:parameter name='active' value='true'/>
        <map:serialize type='html'/>

OK but I can not find a running sample in cocoon samples ( i am using 2.1.10
and when I trying this in my pipe, I get the following exception: 

org.xml.sax.SAXParseException: The markup in the document preceding the root
element must be well-formed. 

It seems to be that it only works for schema and Relax and NG Schema??? 
Have anyone a running sample or solutions, to get validation with dtd work? 

Thanks for help 

Björn Voigt 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message