Help:COAP-3180/week7: Difference between revisions

The educational technology and digital learning wiki
Jump to navigation Jump to search
mNo edit summary
Line 13: Line 13:
=== Homework 6 ===
=== Homework 6 ===


=== Task ===
==== Task ====


* Create three XQuery scripts that extract three different data from a single large XML File
* Create three XQuery scripts that extract three different data from a single large XML File and render them in HTML
* You are expected to use simple FLWR expressions like the following one:
<source lang="xml">
xquery version "1.0";
 
let $source_doc := fn:doc("http://tecfa.unige.ch/guides/xml/examples/shakespeare.1.10.xml/hamlet.xml")
return
<html>
<head> <title>Questionnaire Items</title> </head>
<body>
  Acts of Hamlet
  <ol>
  { for $t in $source_doc//ACT//SCENE/TITLE
  return
  <li> {$t/text()} </li>
  }
  </ol>
</body>
</html>
</source>


==== Submission Dates ====
==== Submission Dates ====
Line 32: Line 51:


* Read my handout first, you may need to find some extra reading.
* Read my handout first, you may need to find some extra reading.
* If you use the XQuery USE ME plugin, set the '''Output file ext. to html''' !


=== Links and teaching materials ===
=== Links and teaching materials ===


; Online software
; Online software

Revision as of 23:03, 21 February 2010

Week 7 - COAP 3180

Topics Covered

  • Termproject - Getting it done with Wordpress
  • XQuery (follow-up)
  • Digital identities

Classroom activities

Homework 6

Task

  • Create three XQuery scripts that extract three different data from a single large XML File and render them in HTML
  • You are expected to use simple FLWR expressions like the following one:
xquery version "1.0";

let $source_doc := fn:doc("http://tecfa.unige.ch/guides/xml/examples/shakespeare.1.10.xml/hamlet.xml")
return
<html>
 <head> <title>Questionnaire Items</title> </head>
 <body>
  Acts of Hamlet
  <ol>
  { for $t in $source_doc//ACT//SCENE/TITLE
   return 
   <li> {$t/text()} </li>
   }
   </ol> 
 </body>
</html>

Submission Dates

  • This homework is due at start of Monday lesson, week 8.
  • Students must provide three XQuery scripts plus a URL of the XML file.
  • Each homework counts 10% in your global evaluation. The four best homeworks will be taken into account.

Evaluation

  • Three working scripts
  • Complexity of the query
  • Rendering quality, e.g. you get a bonus if you render in a (X)HTML page.

Tips for the homework

  • Read my handout first, you may need to find some extra reading.
  • If you use the XQuery USE ME plugin, set the Output file ext. to html !

Links and teaching materials

Online software
Teaching materials
Optional reading