1 A Method for Creating Web Sites Representation and Management of Data on the Internet.

Slides:



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

Web Pages Week 10 This week: CSS Next week: CSS – Part 2.
Layout using CSS. Using multiple classes In the head:.important{font-style:italic;}.title{color:red;} In the body: Here's a type of paragraph that is.
HTML Overview - Cascading Style Sheets (CSS). Before We Begin Make a copy of one of your HTML file you have previously created Make a copy of one of your.
CHAPTER 7 STYLING CONTENT WITH CASCADING STYLE SHEETS.
1 Styles and CSS David Douglas Sam M. Walton College of Business, University of Arkansas “Connecting scholarship and research with business practice”
Making Things Look Nice: Visual Appearance and CSS CMPT 281.
CSS Chained classes Julien BRAURE –
It’s All About Style The Basics of Style Sheets Presented by Barry Diehl.
XSL XSLT and XPath 11-Apr-17.
Very quick intro HTML and CSS. Sample html A Web Title.
XML: Managing Data Exchange Stylesheets. Lesson Contents CSS The basic XSL file XSL transforms Templates Sort Numbering Parameters and Variables Datatypes.
Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
“Cascading Style Sheets” for styling WWW information DSC340 Mike Pangburn.
MSc. Publishing on WWW Tables and Style Sheets. Tables Tables are used to: Organize and display tabular data To create a layout for web pages.
Chapter 7 Using Advanced Cascading Style Sheets HTML5 & CSS 7 th Edition.
Web Workshop: CSS Objectives: - “What is CSS?” - Structure of CSS - How to use CSS in your webpage.
The.htm/.html Mystery When saving the template files in Internet Explorer, they will be named.htm by default. To be consistent with how the code was written.
Static VS Dynamic websites. 1-What are the advantages and disadvantages? 2- Which one should you choose and why?
Chapter 12 Creating and Using XML Documents HTML5 AND CSS Seventh Edition.
Structure Content Presentation Semantics.
Fluency with Information Technology INFO100 and CSE100 Katherine Deibel Katherine Deibel, Fluency in Information Technology1.
Web Design Dreamweaver Semester 2 ATBs. ATB #1 What is a web site?
Web Technologies COMP6115 Session 2: Planning, Designing, Constructing and Testing Static Web Sites Dr. Paul Walcott Department of Computer Science, Mathematics.
HTML basics exercises.
Tutorial #3 Cascading Style Sheets. Review: Last Class Image sizing Pathnames Project Default Path Relative Path Absolute Path Blackboard Homework Submission.
1 What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles are normally stored in Style Sheets  Styles.
Tutorial #3 Cascading Style Sheets. Tutorial #2 Review - Anchors Links to Site DMACC Internal Links Go to Top Mail To me Local.
Form Tag How to use Form Tag Something NEW ? PARAMETER Attribute NAME Specifies the name for a form To specify which form to submit with JavaScript, this.
The Information School at the University of Washington INFO 440: Information System Design Fall 2003 * Bob Boiko * MSIM Associate Chair XML Transforms.
Homework #4 HTML Web Assignment II ©2001 E. Kinnear.
1 Web Application Programming Presented by: Mehwish Shafiq.
DHTML. What is it? Dynamic HTML. Not a standard unlike HTML or Java It is a term applied by both Netscape and Microsoft to a collection of technologies.
HTML GUIDE Press F5 and then Click on the links on the left to get to the section you want Section 1: Getting Started Section 2: Moving Banner Section.
Creating a Web Site Review of Concepts. Templates Templates are special HTML files that are used to quickly create pages on a web site. They contain the.
Cascading Style Sheets CSS. Source W3Schools
Adobe Dreamweaver CS3 Developing a Web Page. Planning the Page Layout Use White SpaceUse White Space Limit media objectsLimit media objects KISSKISS Use.
WEEK -1 ACM 262 ACM 262 Course Notes. HTML What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML.
CSS Hadas Kahsay. Overview  What is CSS  Basic syntax of CSS Rules  How to link CSS style to html documents  Browsers and CSS  Advantages of CSS.
Introduction to Programming the WWW I CMSC Summer 2003 Lecture 6.
Your HTML website creating your first html file. Creating an HTML FIle Open note pad from accessories, programs. Write code. Save and view. In 3 Steps.
1 A Method for Creating Web Sites Representation and Management of Data on the Internet.
Week 5  SEO  CSS Please Visit: to download all the PowerPoint Slides for.
HTML LAYOUTS. CONTENTS Layouts Example Layout Using Element Example Using Table Example Output Summary Exercise.
What is CSS? A set of style rules that tell the web browser how to present a web page or document. – In earlier versions of HTML, style characteristics,
Presentation Title Subtitle or Speaker, Role in Project, Institution Place Institution Logo Here.
CSS Cascading Style Sheets. Session Checklist ► Learn why style sheets are needed and their advantages and disadvantages ► Learn the format of a style.
Cascading Style Sheets Using HTML. What are they? A set of style rules that tell the web browser how to present a web page or document. In earlier versions.
CSS Introductions. Objectives To take control of the appearance of a Web site by creating style sheets. To use a style sheet to give all the pages of.
Creating Web Documents CSS examples (do more later) Lab/Homework: Read chapters 15 & 16. Work on Project 3, do postings.
CSS Cascading Style Sheets
CSS Nick Sims.
Web Basics: HTML/CSS/JavaScript What are they?
This is the cover slide..
Style Sheets.
Creating an XSLT Style Sheet for Formatting Data
Madam Hazwani binti Rahmat
Art 128 Interface Programming 1 In-class Presentation Week 2B
Introduction to Web programming
The Difference Between STATIC & DYNAMIC Websites
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Subtitle or Speaker, Role in Project, Institution
The Web Wizard’s Guide To DHTML and CSS
Subtitle or Speaker, Role in Project, Institution
Introduction to Cascading Style Sheets (CSS)
Web Programming– UFCFB Lecture 11
Lesson 4 – Introduction to CSS
Made By : Lavish Chauhan & Abhay Verma
One Set of Styles Connected to As Many Pages as You Want!!!
Use this slide to present information in bullet form.
Presentation transcript:

1 A Method for Creating Web Sites Representation and Management of Data on the Internet

2 An Example Consider the dbi exercise pages (ex1, ex2, ex3)ex1ex2ex3 Observe that they have many common characteristics: –Name of exercise in large and blue –Submission date in red –Headers in green –etc.

3 Creating the Exercise Pages Option 1: Manually add the definitions of font, color, etc., in each place in the exercise: – To Submit Advantages? Disadvantages?

4 Creating the Exercise Pages Option 2: Use CSS to define the style for the page at the start of the page: –body {BACKGROUND: white } –h3 { color: green } –h2 { color: red } –h1 { color: blue } Advantages? Disadvantages?

5 Creating the Exercise Pages Option 3: Use CSS to define the style for the page, and import the CSS at the start of the page: – Advantages? Disadvantages? Original Ex1New Ex1

6 Separating Style from Content Using Option 3, we have separated the content from the style to a large degree: –an HTML expert can create the CSS definitions –we simply import the CSS –the CSS can be used throughout the site –the CSS can be switched

7 Separating Style from Content However, what if we want to change the presentation style for all exercises in a different way? –add a list of links to subsections at top –add a list of grades of students –change ordering of information –etc.

8 Solution Place info about exercises in a database Create an xsql page which –gets as a parameter an exercise number, and –creates an XML page containing information about the exercise Create a style sheet that transforms the resulting XML page into an HTML page that imports the CSS file defined earlier Advantages? Disadvantages?

9 Using XSQL Pages CSS XSQL XSL XML XSQLProcessor + Parameters XML XSQLProcessor + Parameters HTML XSL Processor HTML XSL Processor

10 The Database Titles(ex_num, title) DueDates(ex_num, due) Contents(ex_num, header, content, section_num) Bonuses(ex_num, descr)

11 select title from Titles where select due from DueDates where

12 select header, content from Contents where order by section_num select descr from Bonuses where Example Result

13 Creating the XSL Example HTML Page XML Tidy "Static" XSL Surround with some XSL "Dynamic" XSL Replace static data with XPath

14 Creating the XSL (1) Start with a static html example of a resulting exercise page (this uses a similar CSS to the one before)

15 Exercise 1 Exercise 1: Search Cache Submission date: 2/6/2003 THE FIRST HEADER Some content in the first section. THE SECOND HEADER Some content in the second section. BONUSES Here the bonus will come. Example

16 Creating the XSL (2) Use the tidy utility located at:tidy – –only check "Output XML" Output of tidy is on the next slideOutput

17 <meta name="generator" content="HTML Tidy for Linux/x86" (vers 1st November 2002), see /> Exercise 1 Exercise 1: Search Cache Submission date: 2/6/2003 THE FIRST HEADER Some content in the first section. THE SECOND HEADER Some content in the second section. BONUSES Here the bonus will come.

18 Creating a Static Stylesheet Make your XML into a stylesheet by surrounding it by: – What will be the result if we apply the stylesheet created to an XML file? XSL

19 Making the Stylesheet Dynamic (1) Replace the static information with XSL commands that will retrieve the information from the XML document. Example: – Exercise 1: Search Cache – Exercise :

20 Making the Stylesheet Dynamic (2) Sections: – THE FIRST HEADER Some content in the first section. –

21 Making the Stylesheet Dynamic (3) Bonus: – BONUSES Here the bonus will come. – BONUSES XSL Result

22 Running an XSL Processor Apache has a command line tool for applying an XSL stylesheet to an XML document: java org.apache.xalan.xslt.Process -IN in.xml -XSL style.xsl -OUT out.html You need the following in your CLASSPATH: /usr/local/java/apache/lib/xerces.jar /usr/local/java/apache/lib/xalan.jar