At Tuesday 6/5/01 02:24 PM, you wrote:
S Uma wrote:
>
> Hi,
>
> I am just wondering if a dtd can have recursive definitions?
>
> i.e. <!ELEMENT list (item+, list)>
Yes. Example: sections can have subsections:
<!ELEMENT section (title, text, section*)>
now you can nest (sub)sections as many times you need!

>
> If it is valid syntactically, are there any advantages of defining
> elements recursively? To me ,it is confusing to have elements defined
> recursively.
>
> Does anyone know of a situation where it is really helpful ?

<!ELEMENT directory (directory*|file*)>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


With kind regards,

W(im) S. de Vries LL M
Information Structure Technologist
Electronic Production Department
Elsevier Science NL
tel. (+31) 20 4852733
fax  (+31) 20 4852812

Sara Burgerhartstraat 25
1055 KV Amsterdam
The Netherlands


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to