COAP:COAP-2180/week1: Difference between revisions

The educational technology and digital learning wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 26: Line 26:
==== Homework 1 - Week 1 ====
==== Homework 1 - Week 1 ====


Due: Wednesday week 2 (before start of class)
'''Deadline and submission:'''
* Wednesday week 2 (before start of class)
* Use the worldclassroom: https://webster.blackboard.edu/
* Submit the *.xml, the *.dtd and an optional report file (see below)
 
==== Task ====


Edit an XML document with the suggested DTDs below
Edit an XML document with the suggested DTDs below
Line 37: Line 42:
* http://tecfa.unige.ch/guides/xml/examples/dtd-examples/
* http://tecfa.unige.ch/guides/xml/examples/dtd-examples/


==== Evaluation criteria ====
Roughly ....
{| class="prettytable"
{| class="prettytable"
| <center>'''DTD (difficulty)'''</center>
| <center>'''DTD (difficulty)'''</center>
Line 94: Line 97:


|}
|}
==== Evaluation criteria ====
Roughly ....


'''Work considered as weak:'''
'''Work considered as weak:'''
Line 108: Line 114:
* Respect of the DTDs semantics
* Respect of the DTDs semantics


Brillant work includes:
'''Brillant work includes:'''
* A 1-2 page report that discusses the architecture of the DTD and your opinion of it, e.g. you can describe architecture of the DTD (without going into detailed description of every element !), discuss what you would like to improve, what you liked/disliked, your difficulties, etc.
* A 1-2 page report that discusses the architecture of the DTD and your opinion of it, e.g. you can describe architecture of the DTD (without going into detailed description of every element !), discuss what you would like to improve, what you liked/disliked, your difficulties, etc.
You simply can include this report into the DTD that you resubmit or as word/PDF/HTML file. As you like, presentation doesn't matter.
You simply can include this report into the DTD that you resubmit or as word/PDF/HTML file. As you like, presentation doesn't matter.
Submission:
* Use the worldclassroom: https://webster.blackboard.edu/
* Submit the *.xml, the *.dtd and an optional report file

Revision as of 23:44, 26 October 2010

Week 1 COAP 2180

On week one we will look at XML in three ways:

  • Where is XML used ?
  • What is XML (a formalism) ?
  • How can we hand-code XML applications ?

Teaching materials

Introduction to XML
  • xml-intro.ppt (slides used on Monday)
  • XML article in this wiki (includes the same information and is somewhat more readable)
Introduction to editing XML
  • xml-edit.pdf (slides used to explain how to understand DTDs and how to edit XML)
  • Editing XML tutorial (same information as wiki article, draft but probably still more useful then the slides
Examples
  • DTD and XML templates example directory
  • To retrieve these files, I strongly suggest that you "save as". If you open a file in a navigator like IE and the save, you may loose information ....
  • Also consider taking the ALLFILES.zip archive which should include everything. Before unzipping, create a directory.
Textbook chapters
  • See the worldclassroom

Homework 1 - Week 1

Deadline and submission:

  • Wednesday week 2 (before start of class)
  • Use the worldclassroom: https://webster.blackboard.edu/
  • Submit the *.xml, the *.dtd and an optional report file (see below)

Task

Edit an XML document with the suggested DTDs below

  • Respect the semantics of the elements and the attributes
  • Validate your document
  • Try to use as many different elements as you can (if appropriate)
  • Follow additional directions for each suggested DTD
  • Bonus: add comments in the DTD or the XML file

You can choose among the DTDs availabe at:

DTD (difficulty)
Purpose
file name
Additional directions
Recipe DTD

(easy)

Write simple recipes recipe.dtd Use all tags. Write at least one recipe. Make sure that there is enough information to really use it.
Recipe Markup Language

(medium)

Write complex recipes recipeml.dtd As above, but only use appropriate tags. Hint: find the website of its creator
RSS 0.92

(medium)

News syndication (usually machine generated) rss-0-92.dtd Use enough tags to display this in an aggregator. Enter at least 4 URLs. Hint: look at a RSS news feed first !
Simple Docbook

(hard)

Write "real" articles sdocbook.dtd Do not use all tags, only the needed ones. Copy/paste from a text you already have.
StepbyStep

(medium)

Write "how-to" instructions stepbystep03.dtd Make up a good "how-to problem". Only use tags you need..
Story grammar

(medium)

Write simple fairy tales story-grammar.dtd Write a nice fairy tale. Doesn’t need to be your own.

Evaluation criteria

Roughly ....

Work considered as weak:

  • Wellformed (but not valid) document using the DTD’s elements

Work considered as minimalistic:

  • Valid document that includes very minimal content.

Good work includes:

  • Valid document with an interesting content

Exellent work includes:

  • Inserted useful comments <!-- ... --> in the XML and/or the DTD
  • Respect of the DTDs semantics

Brillant work includes:

  • A 1-2 page report that discusses the architecture of the DTD and your opinion of it, e.g. you can describe architecture of the DTD (without going into detailed description of every element !), discuss what you would like to improve, what you liked/disliked, your difficulties, etc.

You simply can include this report into the DTD that you resubmit or as word/PDF/HTML file. As you like, presentation doesn't matter.