cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Crossley <cross...@indexgeo.com.au>
Subject XML validation during build docs
Date Thu, 25 Oct 2001 08:58:52 GMT
Has the "build docs" stopped doing validation of xdocs, or
do i imagine that? I recall that when the build was controlled
by Ant, then it was doing full XML validation. I am sure that
i often received validation errors while developing my xdocs.

Now that the build is run by Cocoon then it only does a
well-formedness check. I tested the current situation by
deliberately breaking index.xml by removing the mandatory
<title> element, then by just removing the closing tag.

I think that i know why. The Ant build used Xerces directly
where validation was probably default true. Whereas, in
Cocoon the parser should, and does, have validation=false.

I see that components/parser/XercesParser.java has
setFeature validation=false. However, the default
JaxpParser.java does not setFeature validation in any way.

I would think it desible to have validation happening for
the documentation build, and of course, not happening
while running as a servlet. Is there a way?

--David

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message