X hits on this document

364 views

0 shares

1 downloads

0 comments

26 / 142

Document type definitions

1.

The letter element contains one date element, one adressee element, one greeting element, at least one paragraph or at least one list element, and one closing element.

2.

The date element contains plain o' text, no markup.

3.

The addressee element contains one and only one name, address one, and address two element, in that order.

_

_

4.

The name, address_one, address_two, and greeting elements contain text, no markup.

5.

The paragraph element can contain plain text or the italics element.

6.

The italics element contains plain, non-marked up, text.

7.

The list element contains at least one item element.

8.

The item and closing elements contain plain text.

To include this DTD in our XML file, we must create pointer to the DTD, and since the DTD is local to our environment, and not a standard, the pointer should be included in the XML document looking like this:

<!DOCTYPE letter SYSTEM "letter.dtd"> <letter> <date> December 11, 2002 </date> <addressee> <name> Melvile Dewey </name> <address_one> Columbia University </address_one> <address_two> New York, NY </address_two> </addressee> <greeting> Dear Melvile, </greeting> <paragraph> I have been reading your ideas concerning nature of librarianship, and <italics>I find them very intriguing</italics>. I would love the opportunity to discuss with you the role of the card catalog in today's libraries considering the advent to World Wide Web. Specifically, how are things like Google and Amazon.com changing our patrons' expectations of library services? Mr. Cutter and I will be discussing these ideas at the next Annual Meeting, and we are available at the follow dates/times: </paragraph> <list> <item> Monday, 2-4 </item> <item> Tuesday, 3-5 </item> <item>

18

Document info
Document views364
Page views370
Page last viewedFri Dec 02 18:53:15 UTC 2016
Pages142
Paragraphs3126
Words34660

Comments