True, schema is pretty verbose, but personally, I don't mind since it is a one time thing users wouldn't have to worry about. Another benefit is we could define a doc namespace, and include all of our config documentation withing annotation/document elements. An XSL stylesheet would pick up our doc namespace elements and convert them into nice, multi-format documentation. (I say custom namespace to allow us to define docs in a limited taxonomy to improve the quality of our output documentation.)

Don

Joe Germuska wrote:
At 10:16 AM -0800 2/16/05, Don Brown wrote:

Technically, moving to XML schema would be easy :) I wonder why we use DTD now. If it is Java support, you could use a supplemental library for Java 1.3 or earlier. Perhaps it is complexity? (although in the end, schema would be a huge simplification IMO)


There was a time when Struts depended on a validating parse against the DTD to fill in default values; those have all been factored out.

I prefer RelaxNG to XML Schema, but from a bit of searching, I'm still not clear about how to validate in a universal way. I've used the Sun Multi-schema-validator with it, but I'm not sure that we can expect everyone's JAXP implementation to be able to validate against RelaxNG.

I was excited about XML Schema for a few weeks, but I soured on its verbosity; still, it's probably better than using a DTD.

Joe



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to