|
From: Fredrik L. <fre...@ap...> - 2005-06-13 16:48:16
|
On Mon, 13 Jun 2005 09:51:04 +0200, <jas...@ma...> wrote: > On 12 Jun 2005, at 08:52, Fredrik Lindgren wrote: >> The functionality described seems nice and unobtrusive. >> >> Switching to XSD however, would be a disaster. Not only would you add = =20 >> more dependencies to spring to support XSD validation, > > What new dependency? Xerces is included in the JDK/JRE which can handle= =20 > XSD validation > I know that the latest JDK supports it, but is it safe to expect all =20 spring users to upgrade? The solution should be able to support being =20 deployed on older versions as well. This could of course be handled by no= t =20 performing the validation for custom xml in case the custom validation =20 support is not available. That would be OK for me. >> you would also force an unneccesary, and in my opinion bad, technology= =20 >> choice on spring users if they want to take advantage of the custom xm= l =20 >> functionality. > > Both DTDs and XSDs can be supported - the Spring.xml file can decide =20 > which validation mechanism it prefers. > > >> Please go ahead and add the custm xml functionality, but in the Spring= =20 >> spirit, keep the validation implementation pluggable. > > It is! :) > > Whatever the end user uses to validate their XML is up to them - either= =20 > DTD, XSD or no validation are the choices right now. I know. That's why I support adding the functionality as it is right now.= =20 I only objected to the idea of switching to XSD as a required/default =20 validation mechanism for the spring XML. Personally I prefer to use RELAX= =20 NG for my validation needs since it has better support for alternative =20 syntaxes (attribute or child content) and support for cooccurence =20 constraints which might be helpful for catching some additional =20 configuration errors. I'll check out the implementation details and try t= o =20 get back with more constructive feedback. Regards Fredrik Lindgren > > James > ------- > http://radio.weblogs.com/0112098/ > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. How far can you =20 > shotput > a projector? How fast can you ride your desk chair down the office luge= =20 > track? > If you want to score the big prize, get to know the little guy. Play to= =20 > win an NEC 61" plasma display: http://www.necitguy.com/?r=3D20 > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > --=20 Fredrik Lindgren Software Architect, Appear Networks AB |