Coursework
a) The Food Remedies, which is the book, consists of lots of chapters and contents.
We need to provide the Knowledge base such as Advanced organization of book, search, and related article features to ensure the user or visitor find the answers they're looking for
So first we need to just create website which is flexible and accessble for users.
I am just planning to do the following features of it
searching options within web by fruitName, MedicalUse,caution, recomond Authority,
and FAQs.
c) Entities and Attributes
BookName - rootElement
chapter, publishDate , publishBy - attribute
author - element
address - element w
street, country - attributes
fruitname - element
medicalUse - element
reciepe - element (how to prepare the food)
recomendBy - element (Eg: Doctor or authority)
description - element
footNote - element
cautions - element (Any prohibitions)
The Sample XML Document Look like this,
< bookName chapter="introductory" ></bookName>
<author>Flowrence Daniel</author>
<address no="11" street="cursitor" ></address>
<fruitName>
<medicaluse>fever and cought</medicalUse>
<reciepe>Take 2 apple and....</reciepe>
<recomondedBy>Doctor. Haige </recomondedBy>
<description>apple is traditional food .....</description>
<foorNote>notes</footNote>
<caution>dont eat this food for cough people</caution>
</fruitName<
</bookName>
Selected Portion of Book Contents
Beet.
The red beet is useful in some diseases of the womb, while the white beet is good for the liver. It is laxative and diuretic. The juice mixed with olive oil is also recommended to be applied externally for burns and all kinds of running sores.
Cabbage.
All the varieties of the colewort tribe, including cabbage, cauliflower, brussels-sprouts, broccoli, and curly greens, have been celebrated from very ancient times for their curative virtues in pulmonary complaints. And Athenian doctors prescribed cabbage for nursing mothers. On account of the sulphur contained in them cabbages are good for rheumatic patients. They may be eaten steamed, or, better still, boiled in soft water and the broth only taken. The ordinary boiled cabbage is an indigestible "windy" vegetable, and should never be eaten.
Caraway Seed.
Caraway seeds sharpen the vision, promote the secretion of milk, and are good against hysterical affections. They are also useful in cases of colic. When used to flavour cakes the seeds should be pounded in a mortar, especially if children are to partake thereof.
When used medicinally 20 grains of the powdered seeds may be taken in a wineglassful of hot water. But for children half an ounce of the bruised seeds are to be infused in cold water for six hours, and from 1 to 3 teaspoonfuls of this water given.
A poultice of crushed caraway seeds moistened with hot water is good for sprains.
Caraway seeds are narcotic, and should therefore be used with caution.
XML FILE.
<?xml version="1.0" ?<
<?xml-stylesheet type= "text/xsl" href= "food.xsl"?<
<foodremedy<
<fooditem<
<foodcategory id= "grain"<
<wordSet<
<name>Beet</name<
<cure>Red beet useful in some diseases of the womb, white beet is good for the liver, Burns</cure<
<Authority> </Authority<
<Cautionsprohibition<</Cautionsprohibition<
</wordSet<
<wordSet<
<name<Caraway Seed</name<
<cure>sharpen the vision, good against hysterical affections, useful in cases of colic</cure<
<Authority> </Authority<
<Cautionsprohibition<Caraway seeds are narcotic, should be used with caution</Cautionsprohibition<
</wordSet<
</foodcategory<
<foodcategory id= "vegetable"<
<wordSet<
<name<Cabbage</name<
<cure<good for rheumatic patients, CONSUMPTION <Authority<Athenian doctors </Authority<
<Cautionsprohibition<Ordinary boiled cabbage is an indigestible "windy" vegetable, and should never be eaten.</Cautionsprohibition<
</wordSet<
</foodcategory<
</fooditem<
</foodremedy<
This is my XML coding for my CW. I have just finished my CW and CW2 stuff inlcuding Stylesheet to represent the data in a proper format and finish the DTD also to validate the XML.
Wednesday, March 3, 2010
Subscribe to:
Post Comments (Atom)
I am just planning to include the book details also in the XML file. So i just add the bookname and chapter elements in the top of my document
ReplyDelete