Emmanuel Pirsch wrote:
> They are not both attribute, you have something that describe (Description), in a
>human
> understable way, the data and something else that define (Reentrant) how it will
>behave. The
> Description is like a comment in a Java program, it helps humans understand the code
>but it is
> the actual code that is important. When the java source is compiled the comments are
>left out
> because they are not needed.
This could easily degenerate into a "Yes" "No" "Yes "No" discussion..
you think they are not both attributes, I do. But just one last example:
if Reentrant needed to have multiline capabilities, then you'd have no
option but to make it an element...would then all other attributes as
you define them also be elements, or should then some attributes be
elements and some XML-attributes?
> XML will covert most of the rules and is a lot more easier to put validation in a
>DTD than in a
> java program. In a DTD you just have to declare what is valid, in Jva you have to
>write code that
> must check against specific condition wich take more time and is more likely to have
>bugs.
Funny that you should mention this as the EJB1.1 Public Review
specification DTD contains *at least* 9 errors. Coding is always coding
it seems...and these errors probably had to pass an extensive internal
review process (!)...
> Maybe if you list some rules than we will not be able to represent in a DTD, this
>would be
> helpful.
* The text node of Field must be a public variable in the corresponding
Entity
* The text node of Ejb-link must refer to a deployed bean in the same
jar
etc.
These kinds of rules are not (AFAIK) possible to include in a DTD.
/Rickard
--
Rickard �berg
Computer Science student@LiTH
@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".