Project #5 Fan Club News

1. Define a DTD for a newsletter XML language called NewsML. A newsletter consists of a date, a headline, and several articles, photos, and ads mixed together. An article consists of an headline, a by-line, and several paragraphs. A photograph consists of an image and a caption. An ad consists of the name of a product, a brief description of the product, and the name and address of the vendor.

2. Create several (at least two) NewsML newsletters for your organization: MyFanClub.org. Your newsletters should contain at least four articles,one image and four ads. 

3. Create a style sheet for your news letters. The style sheet should format the newsletter as a table (or frames). The top row of the table contains of the name of your organization, the issue number, and the date. The next row contains the headline in large bold font. Each row following the headline contains several columns. A row should contain at least one photo or ad, if available, and the rest should be articles. Rows shouldn't contain more than three or four columns or less than two columns, but otherwise the number of rows should be minimized. Part of your grade will be based on how closely your web pages resemble actual news letters, so experiment with font properties, layout, etc.

4. Create a jsp that reads a newsML document, computes the number of articles, photographs, and ads, sets parameters in the style sheet to optimize the layout of the newsletter, then generates the html.