Difference between revisions of "AIM XML menu"

esse quam videri
Jump to: navigation, search
Line 1: Line 1:
 
[[Category:AIM]]
 
[[Category:AIM]]
  
 +
=Using XML to structure elements of a domain (Menu)=
 +
Elements of a domain can be structured in many different ways. The best solution will depend on many factors (such as the domain itself, culture, history, standards, etc.).
 +
 +
Let's look at a simple example. How would you structure a menu?
 +
 +
Step One: Take an unstructured menu (just a list of items) and organize it into a simple structure. Create the structure as an outline in a word processing program and save it to your in-class folder. Upload and link this from your class portfolio. Include a brief description about how you approached the assignment and structured the menu.
 +
 +
Step Two: Translate the outline you created into a DTD.
 +
 +
Step Three: Create an XML file.
 +
 +
Step Four: Create a CSS file that styles your XML document.
 +
 +
Step Five: Upload the xml, dtd, and css files.
 +
 +
Step Six: Link your xml file from your class portfolio (with the structure and the description you created previously).
 +
 +
==Unstructured Menu==
 
<pre>
 
<pre>
 
Scrambled eggs & American Cheese, served on your choice of fresh baked bagel, white or wheat toast$4.25  
 
Scrambled eggs & American Cheese, served on your choice of fresh baked bagel, white or wheat toast$4.25  
 
Scrambled eggs w/chorizo – spicy sausage, served on your choice of fresh baked bagel, white or wheat toast$4.50
 
Scrambled eggs w/chorizo – spicy sausage, served on your choice of fresh baked bagel, white or wheat toast$4.50
Omelette (American cheese & scrambled eggs with tomatoes & green peppers)$4.75
+
Omelet (American cheese & scrambled eggs with tomatoes & green peppers)$4.75
 
Bagel and Croissants$1.25  
 
Bagel and Croissants$1.25  
Classic Turkey, served on your choice of fresh baked bagel, french bread, white or multigrain$4.25  
+
Classic Turkey, served on your choice of fresh baked bagel, French bread, white or multigrain$4.25  
Veggie (cucumbers, sprouts, lettuce, onions & tomato), served on your choice of fresh baked bagel, french bread, white or multigrain$4.00  
+
Veggie (cucumbers, sprouts, lettuce, onions & tomato), served on your choice of fresh baked bagel, French bread, white or multigrain$4.00  
Ham, served on your choice of fresh baked bagel, french bread, white or multigrain$4.25  
+
Ham, served on your choice of fresh baked bagel, French bread, white or multigrain$4.25  
Roast Beef, served on your choice of fresh baked bagel, french bread, white or multigrain$4.50  
+
Roast Beef, served on your choice of fresh baked bagel, French bread, white or multigrain$4.50  
 
Salads are served with your choice of dressing: Italian, Caesar, Dijon honey mustard
 
Salads are served with your choice of dressing: Italian, Caesar, Dijon honey mustard
 
Garden Salad (Lettuce, tomatoes, cucumbers and croutons) $3.75  
 
Garden Salad (Lettuce, tomatoes, cucumbers and croutons) $3.75  
Line 17: Line 35:
 
Coffee of the day – Decaf$1.49 (12oz) $1.79 (16oz)
 
Coffee of the day – Decaf$1.49 (12oz) $1.79 (16oz)
 
Café Au Lait – coffee of the day with steamed milk topped with foam$1.79 (12oz)$1.99 (16oz)
 
Café Au Lait – coffee of the day with steamed milk topped with foam$1.79 (12oz)$1.99 (16oz)
Bottomless Coffee of The Day$3.75
+
Bottomless Coffee of the Day$3.75
 
Espresso – Today’s Espresso$1.30 (1 shot) $1.55 (2 shots)
 
Espresso – Today’s Espresso$1.30 (1 shot) $1.55 (2 shots)
Machiato – Espresso marked with a dollop of foam $1.35 (12oz)$1.60 (16oz)
+
Macchiato – Espresso marked with a dollop of foam $1.35 (12oz)$1.60 (16oz)
 
Cortado-Equal parts of espresso and steamed milk$1.40 (12oz)$1.95 (16oz)
 
Cortado-Equal parts of espresso and steamed milk$1.40 (12oz)$1.95 (16oz)
Caffe Latte – espresso with steamed milk topped with foam$2.65 (12oz)$3.25 (16oz)  
+
Café Latte – espresso with steamed milk topped with foam$2.65 (12oz)$3.25 (16oz)  
 
Cappuccino – espresso with a creamy mix of steamed milk and foam$2.65 (12oz)$3.25 (16oz)
 
Cappuccino – espresso with a creamy mix of steamed milk and foam$2.65 (12oz)$3.25 (16oz)
 
Americano – espresso and hot water$1.75 (12oz)$2.20 (16oz)
 
Americano – espresso and hot water$1.75 (12oz)$2.20 (16oz)
Caffe Mocha – Espresso with steamed milk, cocoa topped with foam and whipped cream$2.65 (12oz)$3.25 (16oz)
+
Café Mocha – Espresso with steamed milk, cocoa topped with foam and whipped cream$2.65 (12oz)$3.25 (16oz)
 
Coffee$1.49 (12oz)$1.79 (16oz)
 
Coffee$1.49 (12oz)$1.79 (16oz)
Caffe Latte$2.65 (12oz)$3.25 (16oz)
+
Café Latte$2.65 (12oz)$3.25 (16oz)
Caffe Mocha$2.65 (12oz)$3.25 (16oz)
+
Café Mocha$2.65 (12oz)$3.25 (16oz)
 
Steamed Milk$1.65 (12oz)$2.05 (16oz)
 
Steamed Milk$1.65 (12oz)$2.05 (16oz)
 
Hot Cocoa- Steamed milk mixed with cocoa topped with real whipped cream$2.25 (12oz)$2.50 (16oz)
 
Hot Cocoa- Steamed milk mixed with cocoa topped with real whipped cream$2.25 (12oz)$2.50 (16oz)
Line 47: Line 65:
 
Flan with Cheese$2.25 (slice) $28.00 (whole)  
 
Flan with Cheese$2.25 (slice) $28.00 (whole)  
 
Flan $2.00 (slice) $20.00 (whole)
 
Flan $2.00 (slice) $20.00 (whole)
 +
 
</pre>
 
</pre>

Revision as of 22:58, 31 October 2007


Using XML to structure elements of a domain (Menu)

Elements of a domain can be structured in many different ways. The best solution will depend on many factors (such as the domain itself, culture, history, standards, etc.).

Let's look at a simple example. How would you structure a menu?

Step One: Take an unstructured menu (just a list of items) and organize it into a simple structure. Create the structure as an outline in a word processing program and save it to your in-class folder. Upload and link this from your class portfolio. Include a brief description about how you approached the assignment and structured the menu.

Step Two: Translate the outline you created into a DTD.

Step Three: Create an XML file.

Step Four: Create a CSS file that styles your XML document.

Step Five: Upload the xml, dtd, and css files.

Step Six: Link your xml file from your class portfolio (with the structure and the description you created previously).

Unstructured Menu

Scrambled eggs & American Cheese, served on your choice of fresh baked bagel, white or wheat toast$4.25 
Scrambled eggs w/chorizo – spicy sausage, served on your choice of fresh baked bagel, white or wheat toast$4.50
Omelet (American cheese & scrambled eggs with tomatoes & green peppers)$4.75
Bagel and Croissants$1.25 
Classic Turkey, served on your choice of fresh baked bagel, French bread, white or multigrain$4.25 
Veggie (cucumbers, sprouts, lettuce, onions & tomato), served on your choice of fresh baked bagel, French bread, white or multigrain$4.00 
Ham, served on your choice of fresh baked bagel, French bread, white or multigrain$4.25 
Roast Beef, served on your choice of fresh baked bagel, French bread, white or multigrain$4.50 
Salads are served with your choice of dressing: Italian, Caesar, Dijon honey mustard
Garden Salad (Lettuce, tomatoes, cucumbers and croutons) $3.75 
Caesar Salad (Lettuce, croutons, Parmesan cheese, and Caesar salad dressing) $4.95 
Chicken Caesar Salad $ 5.95 
Coffee of the day$1.49 (12oz) $1.79 (16oz)
Coffee of the day – Decaf$1.49 (12oz) $1.79 (16oz)
Café Au Lait – coffee of the day with steamed milk topped with foam$1.79 (12oz)$1.99 (16oz)
Bottomless Coffee of the Day$3.75
Espresso – Today’s Espresso$1.30 (1 shot) $1.55 (2 shots)
Macchiato – Espresso marked with a dollop of foam $1.35 (12oz)$1.60 (16oz)
Cortado-Equal parts of espresso and steamed milk$1.40 (12oz)$1.95 (16oz)
Café Latte – espresso with steamed milk topped with foam$2.65 (12oz)$3.25 (16oz) 
Cappuccino – espresso with a creamy mix of steamed milk and foam$2.65 (12oz)$3.25 (16oz)
Americano – espresso and hot water$1.75 (12oz)$2.20 (16oz)
Café Mocha – Espresso with steamed milk, cocoa topped with foam and whipped cream$2.65 (12oz)$3.25 (16oz)
Coffee$1.49 (12oz)$1.79 (16oz)
Café Latte$2.65 (12oz)$3.25 (16oz)
Café Mocha$2.65 (12oz)$3.25 (16oz)
Steamed Milk$1.65 (12oz)$2.05 (16oz)
Hot Cocoa- Steamed milk mixed with cocoa topped with real whipped cream$2.25 (12oz)$2.50 (16oz)
Tea $1.69 (12oz) $1.99 (16oz)
Apple Cider $1.49 (12oz) $1.79 (16oz)
Orange Juice $1.50
Bottled water $1.10 
Quesadillas (flour tortillas filled with cheese) & Pico De Gallo$5.50 
Chicken Quesadillas (flour tortillas filled w/cheese, chicken) & Pico De Gallo$6.50
Mayan Tamales (choice of pork or chicken)$2.75 
Mexican Tamales (green pepper with cheese) Spicy$1.50 
Potato salad$1.55 
Pico De Gallo with Chips$2.75
Guacamole with Chips$3.99 
Tres Leches (Vanilla or chocolate flavored cake covered with a choice of vanilla or semi-sweet chocolate) $3.00 (slice) $28.00 -8”, $32.00 -9”, $35.00 -10”, $42.00-12”(whole)
ChocoFlan (rich chocolate cake topped with flan)$3.00 (slice) $28.00 (whole) 
Carrot Cake$3.00 (slice) $28.00 (whole) 
German Chocolate*$28.00 (whole) 
Flan with Cheese$2.25 (slice) $28.00 (whole) 
Flan $2.00 (slice) $20.00 (whole)