Skip to content

TasksΒΆ

  1. BaseX for dummies

    Do the exercises contained in the step by step guide of BaseX for dummies document. You can download the XML document factbook.xml.

    Create an screenshot for each exercise and save them in the unit 7 directory of your repository.

  2. Given the following XML document bookstore.xml:

    1. Create new XML database called Bookstore.
    2. Do the following tasks (save every query in a document, 702-##.xq):
      1. List the title of all the books.
      2. List year and title of all books, ordered by year.
      3. List the books whose price is 19.95
      4. List books published before the year 2000
      5. List year and title of books published in English after 2004.
      6. Show the names of the authors that appear in the document, without repetitions, in alphabetical order.
      7. For each book, list its title and authors grouped in a <result> element.
      8. For each book, get its title and the number of authors, grouped in a <book> element.
      9. Generate an HTML document with a header that says "Book List" followed by a 3-column table showing the title, author and price of each book. The table should have borders and the first row should be specially formatted with column names. The title and editorial columns will be aligned to the left, and the price to the right.
      10. Generate an HTML document with the information of the books on web category. The total price value is a field calculated using a query with a let clause.
    3. Add the following document bookstore_2.xml to Bookstore database.
  3. Do the exercises you will find in the following link: https://ioc.xtec.cat/materials/FP/Recursos/fp_asx_m04_/web/fp_asx_m04_htmlindex/WebContent/u3/a3/activitats.html

  4. Repeat exercises 2.9 and 2.10 from task 702 using Javascript and the DOM API.