Assignment

In this assignment, you must design an XML format to describe R software packages. The format should let users describe zero or more R packages in an XML document. For each package, the following information must be stored:

Each of the above properties must be represented with a separate element or attribute. You must choose proper names for elements and attributes that clearly describe their intended purpose.

DTD

Create a DTD for this XML format to express the requirements above.

XML document

To demonstrate the use of the format, create an XML document that contains data about 5 or more different arbitrarily chosen R packages. The data about properties must be taken from here. An example of a package description: https://cran.r-project.org/web/packages/stringr/.

The document must contain both types of packages, i.e., packages that require compilation and those that do not.

Associate the DTD with the document in a document-type declaration.

CSS stylesheet

Create a CSS stylesheet that renders the XML document as follows:

You should use fonts, colors, and gaps to create an aesthetically pleasing visual appearance.

Associate the stylesheet with the XML document.