Showing posts with label assignment. Show all posts
Showing posts with label assignment. Show all posts

Wednesday, 12 October 2011

XSLT Assignment 2 (for Informatics students)

Unless you are also studying another Informatics course, you should do the HTML version of this assignment.

If you are doing this XSLT version of the assignment, first use the lab to do some simple experiments with XSLT.

Go to the w3schools xsl page. This provides an environment where you can experiment with XSL. The example given sets up a simple table. You can edit the XML of the XSLT and then click the Edit and Click Me button to see the result.
  1. Instead of a table, construct a bulleted list of entries, with the title in italics followed by the name of the artist.
  2. Try to present the information in different forms.
  3. Now add the price.  Use CSS to precede it by a £ sign.
  4. Try the sorting example from w3schools.
  5. Can you sort the CDs by price instead of by the artist's name?
  6. Try the conditional test example.
  7. Can you just list the CDs from the 1980s?
  8. Now put the xml version of your recipe in the XML box and try to present it by writing appropriate XSLT in the right-hand box.
  9. You should submit your recipe(s) as XML, together with XSL and CSS for presentation.

Notes

Include your matriculation number (student ID) in each file you submit.
In xml and html please include your student id between <!-- and --> inside the top-level tag of your code. For css, please include your student ID between /* and */ at the end of your recipe.css file.
Submit your assignment by email To annette.leonhard@ed.ac.uk Subject: Assignment-IL-1
You will have to edit a number of text files. We recommend TextEdit on the Mac, but you can use any editor that allows you to edit HTML as plain text. To edit files as plain text in TextEdit, go to the TextEdit Preferences (in the TextEdit menu). Select the Plain Text format under the New Document tab, then tick the box for Ignore rich text commands in HTML files, under the Open and Save tab.
For this assignment you have to produce four files (which you can store in a Folder on your Desktop on the Macs in the 3.01 lab).
These files are:

report
A short (max one page) report.
recipe.xml
An XML representation of your recipe.
recipe.html
An XSL transformation to produce the HTML layout of your recipe.
recipe.css
This file should use CSS properties to style your layout. You may find it useful to look at some examples.
Your folder should also include your image(s) and any other files used in your presentation.

Tuesday, 11 October 2011

HTML Assignment 2


  1. Starting again from the contents of your recipe.txt file, mark up your recipe using HTML tags, using the following template:

    <xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <link rel="stylesheet" type="text/css" href="recipe.css" />
    <head>
    <!-- put your student number here -->
    <title>
    ...
    </title>
    </head>
    <body>
    ...
    </body>
    </html>

    The title of your recipe should replace the first ellipsis; the second ellipsis should be replaced by well-formed HTML using the HTML 5 tags.
    The HTML sandpit is set up to process the body of the recipe. So when using this tool just copy the code from the HTML text box to replace the second ellipsis.
  2. Create a file called recipe.css to display your recipe.html file. You can again use the HTML sandpit to experiment, then cut and paste your css code into your text editor so you can save it.
  3. Finally, write a brief report (no more than one page) comparing your experiences with semantic (xml) and presentational (html) markup. You should also report on any problems you had and how you solved them. Save it as report

You should be able to see the results of your work by double-clicking on the recipe.html file. 

Notes

Include your matriculation number (student ID) in each file you submit.
In xml and html please include your student id between <!-- and --> inside the top-level tag of your code. For css, please include your student ID between /* and */ at the end of your recipe.css file.
Submit your assignment by email To annette.leonhard@ed.ac.uk Subject: Assignment-IL-1
You will have to edit a number of text files. We recommend TextEdit on the Mac, but you can use any editor that allows you to edit HTML as plain text. To edit files as plain text in TextEdit, go to the TextEdit Preferences (in the TextEdit menu). Select the Plain Text format under the New Document tab, then tick the box for Ignore rich text commands in HTML files, under the Open and Save tab.
For this assignment you have to produce four files (which you can store in a Folder on your Desktop on the Macs in the 3.01 lab).
These files are:

report
A short (max one page) report.
recipe.xml
An XML representation of your recipe.
recipe.html
An HTML representation of the layout of your recipe.
recipe.css
This file should use CSS properties to style your layout. You may find it useful to look at some examples.
Your folder should also include your image(s) and any other files used in your presentation.

Tuesday, 20 September 2011

Assignment 1

For your first assignment you should write an essay (1,000-1,200 words) on:
  • The Internet : for better or for worse

If you Google for this title, you will find that it is not original—but, your submission should be!
You must include a list of sources (not included in the word count). You should quote only sparingly, and identify and attribute any direct quotations.
The hand-in deadline for this assignment is 4pm on 7th October
You can submit your report via TurnItIn. See email of 21st September for signup details. Once you have registered, you can sign in at the following url:
https://submit.ac.uk/
The deadline for your submission for the first assignment is 1600 UTC on Friday 7th October. Unless you have good reason for not meeting this deadline, and we have, in advance of the deadline, agreed an extension, late work will not be marked.Publish Post