RU beehive logo ITEC dept promo banner
ITEC 325
2016spring
ibarland

homelectshws
D2Lbreeze (snow day)

dtd
DTDs
defining movie data

Due: 2016.Apr.27 (Wed) 16:00 On D2L, submit your file movies.xml (and, if using an external DTD, movies.dtd). Hardcopy not needed.

In this homework, we'll develop a DTD for the movies.xml (remember, use show-source to see the XML.) from last week's homework. (Note that you don't need any XSLT from the previous homework — you can just add the DTD to the XML file.)

  1. (9pts) Generate a DTD for the grammar (You can have the DTD either in-line in your xml file, or as an external file.) Validate the file, using an XML validator such as at xmlvalidation.com or validome.org.

    Your DTD must match the three provided movies. Use your best judgement about whether a field that occurs in all three is required, or optional, or allowed to have multiple entries.

  2. (1pt) Define two (or more) entities1 &PG13;, &R; (or, perhaps entities for certain common studios), etc.

1Okay okay, if you get technical, the “&” and “;” aren't part of the entity. Still, you know what I mean. The ampersand and semicolon are part of how you denote an entity-literal. Similarly, in programming languages, quotes aren't part of the string but just how you denote what the string-literal is.      

homelectshws
D2Lbreeze (snow day)


©2015, Ian Barland, Radford University
Last modified 2016.Apr.20 (Wed)
Please mail any suggestions
(incl. typos, broken links)
to ibarlandradford.edu
Rendered by Racket.