Assignment 3 November 9 Deadline Assignment 3 is
Assignment 3 November 9
Deadline • Assignment 3 is due November 18 at 1: 30 • There is a paper document required which must be turned in • Late penalty is 10 % per day – Again, your assignment is considered submitted when your files have are on cmpt 165 server, sent to the submission server, and the paper document has been handed in
What You Must Do • You will be creating 2 XML and 2 XSL files • These are meant to be a compliment to your assignment 2 site • Do not have to use your products, colors, etc. from assignment 2, but it is suggested • You will not have to edit your assignment 2 website • You will be simply editing your index. html
Products XML file • 1 XML file for products – At least 5 products – Must have the elements: • • Name Price Number in Inventory Product description • It is okay (even good) to have more than 5
Customers XML File • You will have to write an XML file for your customers • Minimum of 5 customers • Each customer must have the following: – First and last name – Address – Credit Card Information: • Type (Visa, MC, AMEX, etc) • Credit Card Number • Expiration Date • Additional information could include a list of products ordered or total value of goods ordered
XSL Files • You will be creating 2 XSL files to transform your XML files into XHTML • One XSL for your products XML • One XSL for your customers XML • You must link from your XML to your XSL files • XSL do not have to produce a webpage just like your assignment 2 website – Can compliment it
XSL Requirements • 2 XSL files • You must use some color – Plain black and white is not acceptable • Between the two XSL files you must have at least one of each of the following: – – <xsl: sort> <xsl: choose>, <xsl: when>, <xsl: otherwise> <xsl: if> And one additional template • Like we had for flowers and price in the last class example
General Requirements • You must appropriately indent your XML and XSL • You must use appropriate element names • You must use appropriate file names • All 4 of your files must be in an “assignment 3” folder • You may insert images, do fancy stuff, etc. But not required
Submission • You will upload your assignment 3 directory to the cmpt 165 server • You will edit your index. html to provide links to each of your 4 documents (2 xml and 2 xsl) • You will print out a copy of your XML and XSL (no screenshots required) • You will print out a copy of the marking sheet (will be sent out over the weekend) • The marking sheet again will go on the back of your assignment • Put your name, userid, and student number on the front of your assignment • Fill out your name, userid, and student number on the marking sheet
Questions?
- Slides: 10