due: Wednesday, Oct 29
Write a program that echos the DTD of the XML file into a HTML document that allows hypertext navigation of the DTD.
Examples for inspiration:
The HTML for the above example could be as follows.
<html xmlns="http://www.w3.org/1999/xhtml" >
<head><title></title></head> <body> <p> <!ELEMENT <a id="live">live</a> ( <a href="#eat">eat</a> | <a href="#sleep">sleep</a> )* > <br /> <!ATTLIST live xmlns CDATA #FIXED 'what:live' > <br /> <!ELEMENT <a id="eat">eat</a> (#PCDATA) > <br /> Used at: <a href="#live">live</a> <br /> <!ELEMENT <a id="sleep">sleep</a> EMPTY > <br /> <!ATTLIST sleep time CDATA #IMPLIED > <br /> Used at: <a href="#live">live</a> </p> </body> </html> |