A DTD is a file that describes an XML schema. You will find the the DTD for the TLD XML schema beginning on p 3-41 of the JSP 2.0 Spec. The section is title "JSP.C.2DTD for TLD, JSP 1.2". In it specifies that body-content is optional (p 3-46).
But since all your other helpful information has been correct, I believe you when you say it is mandatory.
Thanks to both of you for your clarification. Turns out my book on XML was written in 2003. It doesn't mention "XML Schema". I'll read up about it.
posted 11 years ago
Although this thread is long dead, I just want to share for any future readers that I have discovered through my own testing that body-content is only mandatory for simple tags. Classic tags can omit that element in their tld.
But don't simply take my word for it (or anyone elses for that matter), try it yourself...
Could you hold this kitten for a sec? I need to adjust this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!