Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
Consider the following description of a tag in a TLD:
<tag> <name>SmilyTag</name> <tag-class>com.enthuware.ctags.SmilyTag</tag-class> <description> Replaces emoticons such as , , and with images. </description> <body-content>tagdependent</body-content> <attribute> <name>name</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag>
Which of the following statements regarding the above tag are correct?
a) It is an empty tag b) It may be used as an empty tag. c) It must have a body. d) It must implement BodyTag interface. e) It may take an attribute named 'name'. But if present, its value must be dynamic.
One of the correct answer is (d). and the explanation given is: Since the body-content is tagdependent, it must implement the BodyTag interface.
Can any body explain this..I read HFSJ 1st edition two times but i think there is nothing mentioned that if bod-content is tagdepenedent it must implement BodyTag interface