Week 8 Flashcards

1
Q

Construct a DTD for the fragment of XML document under the heading “Creating the product
catalog” in Chapter 4 of “XML by example”, by S. McGrathin your Reader.

A

The DTD:

And the XML file:

Acme Delux

 <p>A versatile PC for home or business use. Featuring as standard:</p>
 <ul>
 <li>Sound Card</li>
 <li>90-day money back guarantee</li>
 <li>Mouse mat</li>
 </ul>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Construct a DTD for reports.
Reports should include a title, page headers and one or more sections. They may
include subsections, footnotes and a references section. Each section and subsection
must start with a header. The references section should be optional. Where it is
included it should be made up of a header followed by one or more references. Each
reference may be structured into author(s), title and date of publication.

A

The DTD:

The XML document:

This is a title
Page 1

Section 1

This is the report stuff. It may contain subsections and footnotes
footnotes.

Subsection 1

This is a subsection of the
report which may also contain
various footnotes.

This is footnote number 1
This is footnote number 1
This is footnote number 1
This is footnote number 1

Reference Section

How well did you know this?
1
Not at all
2
3
4
5
Perfectly