Processing of structured documents, Session 1 (27.-28.1.)



  1. 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>
    
    

  2. 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


  3. 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:


Helena Ahonen-Myka
Last modified: Tue Jan 21 17:51:41 EET 2003