XML Assignment
    12/1/11
  1. Decide on an appropriate small file that could be used on your final site. Examples include a list of booklets that your company can send, a set of products with images, a calendar of events, etc.
  2. Write a well-formed document with at least five entries that passes the well-formed parser in a browser (no error messages).
  3. A valid file has a DTD that allows the file to be validated by the parser supplied here, which you would have to download, or a schema. For now,
  4. Just be familiar with the basic structure of a DTD <!ELEMENT ...>, <!ATTLIST ...> etc.
  5. Present your XML file with either CSS, XSL, or a combination, or other technologies such as JavaScript. The file should be displayed when the user clicks a link in your final project site. It can be a separate page, although loading it in an iframe in a <div> would make sense, so that it fits the site design: something like

    <div id="fred"><iframe src="events.xml" width="300" height="400"></iframe></div>

    You could also try a <div> with overflow:auto, or overflow:scroll with clip:auto, which will act like an iframe (but how to load the xml is non-obvious). Note that XSL is probably best if you want to display images in the page/frame.
  6. The code will show that the page is built on XML (demo that when presenting your site to anyone).
  7. As before, be able to answer questions about material in the XMl crash course on the schedule for 12/1.
  8.  

    Due: Thursday, Dec. 8 . Post the files on either server, and give me the URL. This will need to work from a link in your final project, but for now you can send me directly to the XML file that will display with CSS or XSL or both.

 


Back to home page