Hi there, I've been learning xml for a while but I now have to write an external dtd for a large xml file but I'm a bit stuck on something and was hoping someone could help. Below is an example of the code from the xml file
<abstract>
<para>Lorem ipsum dolor sit amet, consectetuer adipiscing elit</para>
<acknowledgements>
<para>Lorem ipsum dolor sit amet, consectetuer adipiscing elit</para>
</acknowledgements>
My question is how do I define the para element in the dtd, I'm just a bit confused as its used more than once and in different elements, would it be something like:
<!ELEMENT project (abstract,acknowledgements)>
<!ELEMENT abstract (para)+>
<!ELEMENT para (#PCDATA)>
also within the para's there are thigs like images, code listing and lists, would they just be defined in the <!ELEMENT para (#PCDATA)>?
Any help would be greatly appreciated.