XML exercise. UML Diagram CourseLectureSlide title teacher date title content.

Slides:



Advertisements
Similar presentations
CG0119 Web Database Systems Parsing XML: using SimpleXML & XSLT.
Advertisements

CHOOSING AND USING A CREDIT CARD NAME TEACHER DATE FILE SAVE AS: CHOOSING AND USING A CREDIT CARD NAME, TEACHER AND DATE.
1 A Method for Creating Web Sites Representation and Management of Data on the Internet.
Servlets Enterprise Systems Programming. Servlets  Servlets: server-side Java programs that enable dynamic processing of web-based requests  Web-based.
XML: Managing Data Exchange Stylesheets. Lesson Contents CSS The basic XSL file XSL transforms Templates Sort Numbering Parameters and Variables Datatypes.
Extensible Stylesheet Language (XSL) By Example Tony Wat 9 October 2002.
Templates. January 6, Step 1: Activity Template An activity is a task that requires a single submission. Multiple activities may be combined into.
Power Point Professor Pepper Why?  Make presentations to someone  Make self guided presentations –Mail –Internet  Present on a screen, overheads or.
Multiple Tiers in Action
1 Secondary Fields Web Portal The following slides displays the revised Secondary Fields web portal, version
UFIEKG-20-2 / 06 / Week 131 Data, Schemas and Applications Term 2 Week 13.
APPX Web Development Kit Bringing APPX applications to everyone.
Making a Game Linking Slides. To link slides: 1.Prepare your storyboard 2.Complete all slides 3.Link the slides.
JANUARY 28-31, 2013 SANTA CLARA CONVENTION CENTER.
The Information School at the University of Washington INFO 440: Information System Design Fall 2003 * Bob Boiko * MSIM Associate Chair XML Transforms.
TRADING STOCK SAVE AS: TRADING STOCK NAME TEACHER DATE NAME, TEACHER AND DATE1.
Biology Template used for creating The biology notebook (Journal)
English Comprehension and Composition – Lecture 13 Objectives: Run on Sentences and Practice Exercises Sentence Fragments and Practice Exercises.
CS442: ADVANCED PROGRAMMING USING JAVA Lab 6: Classes and objects Computer Science Department.
1 Overview of XSL. 2 Outline We will use Roger Costello’s tutorial The purpose of this presentation is  To give a quick overview of XSL  To describe.
OHTO -99 SOFTWARE ENGINEERING LECTURE 7 Today: - Design principles: - maintainability & localisation - Testing & testing plan.
Your paper must include the following: 1. A thesis statement 2.background information about your topic 3. At least two pieces of supporting evidence which.
MAT 1236 Calculus III Maple Lab 1. Course Web Page
SCIENCE And the end of the lab reports
Site:Designer: Modified Date: Fall, 2005 Content: Suggestions to Developers: Page Title: File Name:Slide 1 CompleteArtboard Storyboard Interactivity depicted.
PowerPoint presentation title Presenter’s name and date Put a visual here.
Title Name Teacher’s Last name - # Hour Date Due.
Class Lecture Notes Ms. Haut. Class Lecture Notes on Class Website Notes saved in 2 formats –PowerPoint Recommended.
Peeking at Programming with JavaScript. So what’s JavaScript ? A programming language built into your Web Browser program. Adds fun and interactivity.
Computer Science Department Web Portal - support for educational process M.Stanković, Ivan Petković Faculty of Electronic Engineering, University of Niš.
Slide presentation title to go here Secondary information to go here Date to go here.
Courses NumNameDesc Record Field Table Credits. “PROJECT”“SELECT” Operators on Tables.
Emergency Management Training Center Title of Presentation Committee or Workgroup Presenter name and date.
Writing Assignment “The Man”. Open your writing file, title this work as "The Man" with today's date. Please write a story that tells about an encounter.
MAT 1235 Calculus II Maple Lab 1. Team... 2 persons per team One report per team No discussions between teams At least one person in each team knows Maple.
Emergency Management Training Center Title of Presentation Committee or Workgroup Presenter name.
This accounts for at least 80% of your grade..  Leave 1 full page at the beginning of this section (full = front + back)  Label it “Table of Contents”
1 A Method for Creating Web Sites Representation and Management of Data on the Internet.
Week 6, Class 3: Composite Swing composites File composites Computer composites SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors:
Algebra2/Trig1.  The following website has a variety of information concerning scatter plots.  While viewing the site answer the questions given to.
Slide 1 Insert your own content.. Slide 2 Insert your own content.
CompSci 101 Introduction to Computer Science February 5, 2015 Prof. Rodger Lecture given by Elizabeth Dowd compsci101 spring151.
Test Title Test Content.
Presentation Title.
Presentation Title.
Poster Project Energy Transformations
Tutorial 04 (cont’) Using XPath Patterns in an XSLT Style Sheet.
TRADING STOCK PAGE 295 NAME, TEACHER AND DATE.
Output window toolbars
Speaker Name Course Title or # Date
Here is a Suggested Way to Use MML to Study
Slide 1 Insert your own content.. Slide 1 Insert your own content.
Using Matrices with Transformations
Slide 1 Insert your own content.. Slide 1 Insert your own content.
Slide 1 Insert your own content.. Slide 1 Insert your own content.
©2009 G Dear – Not to be sold/Free to use
Put the names of the people in the group here
Group 1 Group 1 Group 1 Group 1 word word word word word word word word word word word word word word word word word word word word word word word.
Put the names of the people in the group here
Investment Analysis and Portfolio Management
Paper Presentation - Ultra Portable Devices
Semester Project _________ Lit
Constitutional Law: Project
WHERE TO KEEP YOUR FINANCIAL RECORDS
Semester Final Project _________ Lit
How to transfer information into your science fair log books.
Presentation Title Your information.
TITLE OF THE PRESENTATION
Slide presentation title Secondary information
Slide presentation title Secondary information
Presentation transcript:

XML exercise

UML Diagram CourseLectureSlide title teacher date title content

Step 1 Create three Java classes Course, Lecture and Slide according the UML diagram Serialize a Course as an XML file (by using simple-xml) (in your example you should have one course with at least 3 lectures, and each lecture should have at least 2 slides - but beware that the number of lectures in a course and the number of lides in a lecture should be arbitrarili large!)

Step 2 Take the XML file you generated, and write a Java program that reads the file and prints on its stdout a set of triples: {course name, lecture name, slide title} (in this spet, you should be using JAXP)

Step 3 Write an XSL transformation that reads your XML file and generates the following web page: Title of the course Title of lecture 1 - n.slides for lecture 1 … Title of lecture 1 - n.slides for lecture n

Step 4 Run the XSL transfromation from within a Java program (use Jaxp)