Hi Friends, Please help me in the following question
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?
Select 2 correct options.
1) It is an empty tag.
2) It may be used as an empty tag.
3) It must have a body.
4) It must implement BodyTag interface.
5) It may take an attribute named 'name'. But if present, its value must be dynamic.
According to me only option 2) is correct, but the mock exam says that options 2)n 4) are correct and the explanation for option 4) it gives is: Since the body-content is tagdependent, it must implement the BodyTag interface.
I dont know any such relation between body-content and BodyTag.... Anyone please correct me if i am wrong.