Give an XSLT transformation that converts the XML document below (XML file) into an HTML page as follows. Test your transformation using Xalan (see the instructions of the XML Tools page of the XML metalanguage course http://www.cs.Helsinki.FI/group/xmltools/ ). You can choose the exact HTML layout.
Postal addressess: Name: Address: Name: Address: ... Email addresses: Name: Email: ...
<?xml version="1.0"?> <cards> <card> <name><fname>Tony</fname><lname>Givargis</lname></name> <address>Department of Computer Science and Engineering, University of California, Riverside</address> <email type="main">givargis@cs.ucr.edu</email> <email type="backup">tony.givargis@aol.com</email> </card> <card> <name><fname>Frank</fname><lname>Vahid</lname></name> <title>Associate professor</title> <address>Department of Computer Science and Engineering, University of California, Riverside</address> <email type="main">vahid@cs.ucr.edu</email> </card> <card> <name><fname>Antonio</fname><lname>Corradi</lname></name> <title>professor</title> <address>Department of Computer Science, University of Bologna, Bologna</address> <email type="main">acorradi@deis.unibo.it</email> </card> </cards>
Group the following concepts so that the concepts describing similar "things" (on a "similar" level) belong to the same group:
HTML document, XML document, XML DTD, Java program (source code), Xerces parser, Java compiler, HTML DTD, BNF (Backus-Naur Form) syntax, string, grammar, HTML, XML
Project, Part 1:
The goal is to design a small business-to-business application. Assume there is a Company A, which sells office supplies, and a Company B, which buys these supplies from Company A.
In the first part:
Choose some products from the www.staples.com web site, and collect all the information given on the page about these products. (Note: the site may ask you to give a US zip code. You can give, e.g. 23456.)
Write a DTD that describes the product information you found.
Describe briefly the general architecture of the application (e.g. draw a picture): business partners, (some) business transactions and the related information that has to be transferred between the partners (Who sends an order/invoice to whom? What information might these documents contain? etc.).