|
Hello, A couple of years ago I asked for help getting DTD validation to work with Cocoon 2.1.8. I got some information but it didn't solve the problem, and I was left with "try looking through the code or running in a debugger". That exchange is included below.[1] The same error occurs in 2.1.11 when I try to validate with a DTD. The codebase is too large for me to analyze... especially for a framework that is supposed to be usable "often without any required programming." I've tried running Cocoon in a debugger but have been unsuccessful. Others have asked about DTD validation. E.g. [2]. But apparently no results were forthcoming. This is really surprising to me, given that Cocoon is built around XML pipelines, and DTD is the only kind of schema language defined as part of the XML standard. Granted, XML Schema is more powerful, and more modern. But for our simple needs, and I'm sure others' too, XML Schema is like using Mathematica to compute 2 + 2. DTD expresses the grammar much more efficiently, for the simple cases. (For corner cases, we use Schematron, which we are able to make work manually because it only requires XML and XSLT, which Cocoon handles well.) I'm all for supporting XML Schema and Relax NG, but for Cocoon not to support DTD's at all just seems baffling. Can any of you Cocoon developers take a look at this please? Unfortunately, we're pretty well tied to Cocoon 2.1.* for now... 2.2 seems to be too big of a structural change for our code base, and 3.0 all the more so. I realize some will be less than motivated to integrate this into the older 2.1.* branch. But we have a lot of time and code invested in Cocoon 2.1, so I thought it was worth asking. At the very least, if someone could tell me authoritatively "no, this is not supported in Cocoon", then I could prune one branch of the search for solutions. Back in 2005, Pier Fumagali wrote (http://www.mail-archive.com/[email protected]/msg34587.html) This finishes the "validation" block and its implementation. It provides two transformers: one filtering in-line and failing on errors, and one producing a report.I would love to know whether this ever happened... or if not, how to supply the trivial missing piece to make it happen.Relax-NG is implemented using Jing.XML-Schema is implemented using the JAXP API supplied with Cocoon ... DTD is currently not supported, although it would be trivial to do it with the Xerces supplied with Cocoon. Regards, Lars [1] http://markmail.org/message/4jx72f3ngzbuyxze#query:cocoon%20validation-report%20dtd+page:1+mid:4jx72f3ngzbuyxze+state:results
|
- DTD validation Lars Huttar
- Re: DTD validation David Crossley
- DTD validation Lars Huttar
- Re: DTD validation Alfred Nathaniel

