COAP:COAP-2180/week7: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
|||
Line 14: | Line 14: | ||
* [[XSD tutorial - Basics]] | * [[XSD tutorial - Basics]] | ||
* [http://tecfa.unige.ch/guides/te/files/xml-schema.pdf xml-schema.pdf] (same contents) | * [http://tecfa.unige.ch/guides/te/files/xml-schema.pdf xml-schema.pdf] (same contents) | ||
* XSD example directory: [http://tecfa.unige.ch/guides/xml/examples/xsd-examples/ xsd-examples/] (not really needed) | |||
==== Textbook chapters ==== | ==== Textbook chapters ==== | ||
Line 19: | Line 20: | ||
* Ray, Learning XML, Second Edition, Chapter 4, Quality Control with Schemas (ok explanation by example, but a bit too short) | * Ray, Learning XML, Second Edition, Chapter 4, Quality Control with Schemas (ok explanation by example, but a bit too short) | ||
* Harold, XML in a Nutshell, XML Schema, chapter 17 (this text is not too easy to understand, but useful reading anyhow) | * Harold, XML in a Nutshell, XML Schema, chapter 17 (this text is not too easy to understand, but useful reading anyhow) | ||
==== Classroom activities ==== | |||
* Translate your "best" DTD to XSD | |||
* Start on hw7 | |||
* Discuss term projet | |||
==== Homework 7 ==== | |||
'''Task''' | |||
* Take the DTD from your term project or homework 4/5. | |||
* Create an XSD from the DTD | |||
* Add extra constraints that are appropriate with respect to your project. Typically you may constrain the number of child elements and add data types for element and/or attribute contents. | |||
Tips: | |||
* Look at examples (includes ones that could be found on the Internet) | |||
'''Deadline and submission:''' | |||
* '''Monday week 8''' (before start of class) | |||
* Use the world classroom: https://webster.blackboard.edu/ | |||
* Submit the *.xsd, the *.xml test files, and an optional optional report file (see below) | |||
'''Evaluation criteria (roughly)''' | |||
''Work considered as weak:'' | |||
* Pure translation without any extra hand editing | |||
''Work considered as minimalistic:'' | |||
* Minimal changes, e.g. a single extra constraint with respect to the number of child elements | |||
''Good work and excellent work (B to A-) may include one or several of the following: | |||
* Inserted comments <!-- ... --> in the XSD that explain some (not all) of the schema | |||
* A report (e.g. in HTML, word, PDF etc.) | |||
* All possible sorts of extra constraints you could reasonably use for your problem | |||
''Brilliant work (A) | |||
* Does '''all''' of the above, i.e. produces a result that could be used in real life. |
Revision as of 23:42, 5 December 2010
Week 7 COAP 2180
(under construction ....)
Week seven includes two topics:
- XML Schema, a more powerful document type definition (gramar) language
- Almost final touches to the term project
- XSLT Q/R if necessary
WARNING/REMINDER: The Wednesday week 7 lesson is cancelled. Make-up class is scheduled for next Friday (december 10) at 12.00h .
Teaching materials
- XSD tutorial - Basics
- xml-schema.pdf (same contents)
- XSD example directory: xsd-examples/ (not really needed)
Textbook chapters
- Ray, Learning XML, Second Edition, Chapter 4, Quality Control with Schemas (ok explanation by example, but a bit too short)
- Harold, XML in a Nutshell, XML Schema, chapter 17 (this text is not too easy to understand, but useful reading anyhow)
Classroom activities
- Translate your "best" DTD to XSD
- Start on hw7
- Discuss term projet
Homework 7
Task
- Take the DTD from your term project or homework 4/5.
- Create an XSD from the DTD
- Add extra constraints that are appropriate with respect to your project. Typically you may constrain the number of child elements and add data types for element and/or attribute contents.
Tips:
- Look at examples (includes ones that could be found on the Internet)
Deadline and submission:
- Monday week 8 (before start of class)
- Use the world classroom: https://webster.blackboard.edu/
- Submit the *.xsd, the *.xml test files, and an optional optional report file (see below)
Evaluation criteria (roughly)
Work considered as weak:
- Pure translation without any extra hand editing
Work considered as minimalistic:
- Minimal changes, e.g. a single extra constraint with respect to the number of child elements
Good work and excellent work (B to A-) may include one or several of the following:
- Inserted comments in the XSD that explain some (not all) of the schema
- A report (e.g. in HTML, word, PDF etc.)
- All possible sorts of extra constraints you could reasonably use for your problem
Brilliant work (A)
- Does all of the above, i.e. produces a result that could be used in real life.