COAP:COAP-2180/week1: Difference between revisions

The educational technology and digital learning wiki
Jump to navigation Jump to search
Line 13: Line 13:
; Examples
; Examples
* [http://tecfa.unige.ch/guides/xml/examples/dtd-examples/ DTD and XML templates example directory]
* [http://tecfa.unige.ch/guides/xml/examples/dtd-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 [http://tecfa.unige.ch/guides/xml/examples/dtd-examples/ALLFILES.zip ALLFILES.zip] archive which should include everything. Before unzipping, create a directory.


; Textbook chapters
; Textbook chapters

Revision as of 23:27, 26 October 2010

Week 1 COAP 2180

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

Due: Wednesday week 2 (before start of class)

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:

<A NAME="pgfId-1000171502"></A>DTD (difficulty)

<A NAME="pgfId-1000171530"></A>Purpose

<A NAME="pgfId-1000171504"></A>file name

<A NAME="pgfId-1000171544"></A>Additional directions

<A NAME="pgfId-1000171506"></A>Recipe DTD

<A NAME="pgfId-1000171566"></A>(easy)

<A NAME="pgfId-1000171532"></A>Write simple recipes

<A NAME="pgfId-1000171508"></A>recipe.dtd

<A NAME="pgfId-1000171546"></A>Use all tags. Write at least one recipe. Make sure that there is enough information to really use it.

<A NAME="pgfId-1000171510"></A>Recipe Markup Language

<A NAME="pgfId-1000171567"></A>(medium)

<A NAME="pgfId-1000171534"></A>Write complex recipes

<A NAME="pgfId-1000171512"></A>recipeml.dtd

<A NAME="pgfId-1000171548"></A>As above, but only use appropriate tags. Hint: find the website of its creator

<A NAME="pgfId-1000171514"></A>RSS 0.92

<A NAME="pgfId-1000171568"></A>(medium)

<A NAME="pgfId-1000171536"></A>News syndication (usually machine generated)

<A NAME="pgfId-1000171516"></A>rss-0-92.dtd

<A NAME="pgfId-1000171550"></A>Use enough tags to display this in an aggregator. Enter at least 4 URLs. Hint: look at a RSS news feed first !

<A NAME="pgfId-1000171518"></A>Simple Docbook

<A NAME="pgfId-1000171569"></A>(hard)

<A NAME="pgfId-1000171538"></A>Write "real" articles

<A NAME="pgfId-1000171520"></A>sdocbook.dtd

<A NAME="pgfId-1000171552"></A>Do not use all tags, only the needed ones. Copy/paste from a text you already have.

<A NAME="pgfId-1000171522"></A>StepbyStep

<A NAME="pgfId-1000171570"></A>(medium)

<A NAME="pgfId-1000171540"></A>Write "how-to" instructions

<A NAME="pgfId-1000171524"></A>stepbystep03.dtd

<A NAME="pgfId-1000171554"></A>Make up a good "how-to problem". Only use tags you need..

<A NAME="pgfId-1000171526"></A>Story grammar

<A NAME="pgfId-1000171571"></A>(medium)

<A NAME="pgfId-1000171542"></A>Write simple fairy tales

<A NAME="pgfId-1000171528"></A>story-grammar.dtd

<A NAME="pgfId-1000171556"></A>Write a nice fairy tale. Doesn’t need to be your own.

Evaluation criteria

Work considered as minimalistic: Wellformed (but not valid) document using the DTD’s elements Valid (minimalistic) document Valid document with an interesting content Inserted useful comments in the XML and/or the DTD You produced some interesting content Respect of the DTDs semantics Write a 1-2 page report that discusses the architecture of the DTD and your opinion of it, e.g. 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.

Submission: