Moin Cocooners, I have a Question about the ValidationTransformer. I have serveral (about 2 Million) 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 the ValidationTransformer. But I had to much changes and so I decided to use an DTD.
Is the current Version of ValidationTransformer able to validate with DTDs? The documentation says yes. -> <http://wiki.apache.org/cocoon/ValidationTransformer> http://wiki.apache.org/cocoon/ValidationTransformer <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:transform> <map:serialize type='html'/> </map:resource> 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
