Malcolm Sparks wrote:
>
> On Tue, May 25, 1999 at 02:27:27PM +0200, Rickard �berg wrote:
> > Hi!
> >
> > Malcolm Sparks wrote:
> > > I disagree strongly. Attributes are a core part of the XML
> > > specification. Which attributes need to be multiline?
> >
> > Specifically the Description tag.
>
> Good, so the DTD should specify <description> as an element, not an
> attribute. Whether *everything* should now become an element, rather
> than an attribute, just to be "consistent" with the <description> tag
> is highly debatable... :-)
Debatable indeed, and my opinion is that everything should be elements.
For consistency. :-)
> > But since a validator will be released from JavaSoft, wont that solve
> > the "requires each vendor to write.." issue?
>
> No. A "validator" could mean a command line tool to check DTD
> validity. Who knows? But Rickard, don't you want your container/server
> to check the validity of EJB assembly as it is loaded, rather than
> relying on the developer to have used Sun's tool?
Sure, use the validator (and I'm assuming here that is designed as a
JavaBean that can be used in more ways than just commandline. Anything
else would be a major mistake).
> Don't you want to
> include a well-tested validating XML parser with your editor, rather
> than write it all yourself?
No, I want to use the validator as all rules are not suitable for a XML
parser to check.
> With a better DTD, everyone gets
> validation for free, using a validating parser (btw, you can get one
> from Sun - ProjectX), instead of every vendor having to write the same
> unnecessary code.
As above, a validating parser can't handle the heat. The rules are too
complex. And every vendor could use the same validator. .. oh.. here
comes an obvious one:
REUSE
;-)
(BTW, try running the example through the Project X parser...)
> And your special EJB editors will be of a higher quality. You don't
> want that rogue editor to spit out invalid XML that your other tools
> refuse to read.
If that rogue editor is bad, don't use it. 8-)
This is an important discussion! More comments!!
/Rickard
--
Rickard �berg
@home: +46 13 177937
Email: [EMAIL PROTECTED]
Homepage: http://www-und.ida.liu.se/~ricob684
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".