Thinking About a Personal Database

Similar documents
Pair projects due Thursday I do not anticipate giving any extensions for this assignment. 3/2/ Larry Snyder, CSE 1

5/17/2009. Marking Up with HTML. An HTML Web Page File. Tags for Bold, Italic, and underline. Structuring Documents

CSE 3. Marking Up with HTML. Comics Updates Shortcut(s)/Tip(s) of the Day Google Earth/Google Maps ssh Anti-Spyware

XML: A Language for Metadata Tags. The Database's Advantage. Differences Between Tables and Databases

Chapter 4: Marking Up With HTML: A Hypertext tmarkup Language Primer

5/17/2009. The Database's Advantage. XML: A Language for Metadata Tags. An Example from Tahiti. An Example from Tahiti (cont'd)

Marking Up with HTML. Tags for Bold, Italic, and underline. An HTML Web Page File. Chapter 4: Marking Up With HTML: A. Formatting with Tags:

CSC 121 Computers and Scientific Thinking

A HTML document has two sections 1) HEAD section and 2) BODY section A HTML file is saved with.html or.htm extension

recall: a Web page is a text document that contains additional formatting information in the HyperText Markup Language (HTML)

Your Own Web Page; Quick and Dirty Via Mashup Reminder: Next Quiz on 4/15

HTML. Mohammed Alhessi M.Sc. Geomatics Engineering. Internet GIS Technologies كلية اآلداب - قسم الجغرافيا نظم المعلومات الجغرافية

A Balanced Introduction to Computer Science, 3/E

Adding EAD-Encoded Finding Aids in CONTENTdm

XSLT (part I) Mario Alviano A.Y. 2017/2018. University of Calabria, Italy 1 / 22

Google Earth: Significant Places in Your Life Got Maps? Workshop June 17, 2013

Fairly advanced HTML

Developing a Basic Web Page

A website is a way to present your content to the world, using HTML to present that content and make it look good

Index. alt, 38, 57 class, 86, 88, 101, 107 href, 24, 51, 57 id, 86 88, 98 overview, 37. src, 37, 57. backend, WordPress, 146, 148

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

Dreamweaver CS6. Level 1. Topics Workspaces Basic HTML Basic CSS

c122jan2714.notebook January 27, 2014

HTML. Based mostly on

HTML. Hypertext Markup Language. Code used to create web pages

XML. Objectives. Duration. Audience. Pre-Requisites

There are four (4) skills every Drupal editor needs to master:

Web Design 101. What is HTML? HTML Tags. Web Browsers. <!DOCTYPE html> <html> <body> <h1>my First Heading</h1> <p>my first paragraph.

HTML for the SAS Programmer

I-5 Internet Applications

Country Communication Pages

XSL Languages. Adding styles to HTML elements are simple. Telling a browser to display an element in a special font or color, is easy with CSS.

Anatomy of an HTML document

Chapter 3 Web Design & HTML. Web Design Class Mrs. Johnson

FUNDAMENTALS OF WEB DESIGN (405)

Title: Jan 29 11:03 AM (1 of 23) Note that I have now added color and some alignment to the middle and to the right on this example.

A Guide for Designing Your Own Dyamic SiteMason Templates. Creating. SiteMason Templates

Semantic Web. XSLT: XML Transformation. Morteza Amini. Sharif University of Technology Fall 95-96

Introduction to Web Technologies

Geocaching HTML & BBCode FUNdamentals by Scott Aleckson (SSO JOAT)

Save Forum Messages will be sent and Pages will be completed by pressing this Save button.

A Brief Introduction to HTML

HTMLnotesS15.notebook. January 25, 2015

Understanding Page Template Components. Brandon Scheirman Instructional Designer, OmniUpdate

Adobe Experience Manager (AEM) Author Training

How the Internet Works

Custom Tables with the LandXML Report Extension David Zavislan, P.E.

The internet is a worldwide collection of networks that link millions of computers. These links allow the computers to share and send data.

On a blog, code can mean many things. It can refer to the complicated

HTML + CSS. ScottyLabs WDW. Overview HTML Tags CSS Properties Resources

Objectives. Introduction to HTML. Objectives. Objectives

Space Details. Available Pages

HTML and CSS COURSE SYLLABUS

Display the XML Files for Disclosure to Public by Using User-defined XSL Zhiping Yan, BeiGene, Beijing, China Huadan Li, BeiGene, Beijing, China

XML Wrap-up. CS 431 March 1, 2006 Carl Lagoze Cornell University

Structured documents

2/1/2016. Discuss website usability essentials Explain principles of design Critique a website in terms of usability and design

This is a paragraph. It's quite short.

Chapter 4 A Hypertext Markup Language Primer

Create web pages in HTML with a text editor, following the rules of XHTML syntax and using appropriate HTML tags Create a web page that includes

CMPS 10 Final Review Section. Gabrielle Halberg & Zhichao Hu

1. Please, please, please look at the style sheets job aid that I sent to you some time ago in conjunction with this document.

1.264 Lecture 12. HTML Introduction to FrontPage

Chapter 4 Notes. Creating Tables in a Website

Web Programming Week 2 Semester Byron Fisher 2018

Html basics Course Outline

Forerunner Mobilizer Dashboards

This document provides a concise, introductory lesson in HTML formatting.

COP 4814 Florida International University Kip Irvine XSLT. Updated: 2/9/2016 Based on Goldberg, Chapter 2. Irvine COP 4814

HTML OBJECTIVES WHAT IS HTML? BY FAITH BRENNER AN INTRODUCTION

11/13/12. HW9: Creativity in Processing. In Processing: File Export. Encoding Information: There s more! HTML and the Web.

Assignments (4) Assessment as per Schedule (2)

INTRODUCTION TO HTML5! HTML5 Page Structure!

Dynamism and Detection

Create, Add, and Manage Videos

Best Practices for Using the Rich Text Editor

Objective % Select and utilize tools to design and develop websites.

Working with Google Earth

STD 7 th Paper 1 FA 4

Web Design and Development ACS Chapter 12. Using Tables 11/23/2017 1

Vernalis Date: A webpage displays a picture. What tag was used to display that picture? a. picture b. image c.

request HTML Document send HTML Document

A Generalized Macro-Based Data Reporting System to Produce Both HTML and Text Files

Responsive web design (RWD) CSS3 Media queries. Mobile vs desktop web sites. Web Development 1 CS1115/CS5002

Best Practices for Using the Rich Text Editor

Revision for Grade 7 ASP in Unit :1&2 Design & Technology Subject

Chapter 1 True/False Instructions: Circle T if the statement is true or F if the statement is false.

USER GUIDE: EDITOR. Drag & drop system: Content Manager Style Editor Add Elements Undo/Redo Save...

HTML Exercise 20 Linking Pictures To Other Documents Or Web Sites

Chapter 4 Creating Tables in a Web Site Using an External Style Sheet

Attributes & Images 1 Create a new webpage

Bootstrap All-in-One

CM Mega Menu Documentation

Forms iq Designer Training

Using Dreamweaver CC. 6 Styles in Websites. Exercise 1 Linked Styles vs Embedded Styles

INFS 2150 / 7150 Intro to Web Development / HTML Programming

XML for Java Developers G Session 2 - Sub-Topic 1 Beginning XML. Dr. Jean-Claude Franchitti

Blackboard staff how to guide Accessible Course Design

Bridges To Computing

FCKEditor v1.0 Basic Formatting Create Links Insert Tables

Transcription:

Chapter 17: The idiary Database: A Case Study in Database Organization Fluency with Information Technology Third Edition by Lawrence Snyder Thinking About a Personal Database Regular Versus Irregular Data The idiary will be an irregular data collection Record things we find interesting in our daily lives Text, photos, URLs, animations, poems, videos, etc. Use XML to specify metadata The database will be an XML tree Use the Identity, Affinity, and Collection rules Organize the database by date The idiary added to each day 1-2 17-2 Thinking About a Personal Database (cont'd) Thinking About a Personal Database (cont'd) Physical Versus Logical The XML tree will be our physical database The logical database is our view of the idiary Use XSL to pick out data we want to display XSL description converts the data to HTML XSL description act like a query with a relational database The idiary Build the idiary database and its stylesheet display together and incrementally Step-by-step approach Easier to debug Mirrors how databases are enhanced over time 1-3 1-4 17-3 17-4

1-5 1-6 17-5 17-6 A Preliminary Exercise Travels Database The XML Definition Entries in the database will be a list of countries Each will have a name and a tour that contains a list of sights, along with that country's flag XML database file named Travels.xml Direct Check of XML Can have a browser display our XML tree 1-7 1-8 17-7 17-8

Displaying the Travels with XSL Connecting XML with Style Style information tells the browser how to display a markup language like XML Style information comes from a companion file with the file extension.xsl Put in the XML file a line which tells the browser where to find the style information <?xml-stylesheet type="text/xsl" href="travelss.xsl"?> 1-9 1-10 17-9 17-10 Displaying the Travels with XSL (cont'd) Displaying the Travels with XSL (cont'd) The Idea of XSL The.xsl file contains a series of rules (templates) on how to format (using HTML) the information enclosed in XML tags in the database XSL Templates XSL is really just XML with one template for each XML tag with HTML for how to display the XML tag <xsl:template match="xml tag name"> </xsl:template> 1-11 1-12 17-11 17-12

Displaying the Travels with XSL (cont'd) Creating the Travelogue Display Each XML tag has a stylistic role to play in the overall creation of the Web page 1-13 1-14 17-13 17-14 Displaying the Travels with XSL (cont'd) Displaying the Travels with XSL (cont'd) The Apply Operation <xsl:apply-templates/> This tag means "now process whatever is inside this XML tag" <xsl:template match="tour"> <td> <xsl:apply-templates/> </td> </xsl:template> Tag Attributes Use curly braces to place information in matched quotes @flag refers to the value of the flag attribute of the <name> tag <xsl:template match="name"> <td align="center"> <xsl:apply-templates/> <br /> <img src="{@flag}"/> </td> </xsl:template> 1-15 eg. <img src="{@flag}"/> becomes <img src="fr-flag.gif"/> 1-16 17-15 17-16

Displaying the Travels with XSL (cont'd) The idiary Database Summary of XSL Browser opens the.xml file, finds a style specification, opens the.xsl file, and begins to process the XML tree The process: match a template do what needs to be done before processing the enclosed information process the enclosed information do what needs to be done after processing the enclosed information consider that tag processed Incremental approach 1. Getting started 2. Creating the first entry (April 26) 3. Thinking about the nature of things 4. Developing tags and templates 5. Critiquing and evaluating the results 1-17 1-18 17-17 17-18 Getting Started Creating the First Entry (April 26) Creating the XML Database (idiary.xml) Decide on root Collection tag (<idiary>) and Affinity tags to enclose daily info (<entry>) Creating the XSL Stylesheet (idiaryss.sxl) Contains the setup for the Web page (title, heading, italicized comment at the start of the page), table containing all the entries, table for each entry 1-19 Date Tagging Let date be atomic, pick a date format, and surround with <date> tags Revising an <entry> <mit> tagging most interesting thing that day Add XSL templates in idiary.xsl for each XML tag Critiquing the Design Vertically align the date Modify the color and font 1-20 17-19 17-20

Thinking About the Nature of Things Developing Tags and Templates Recognizing the Need for Specific Tags Different kinds of data need different tags Choosing Specific Tags Previously an Identification tag, <mit> tag becomes more of an Affinity tag Still a sister to the <date> tag, still identifies the most interesting thing, style role continues The Fact Tag Enclosed by the <mit> tag The Title Tag Announces the most interesting thing entry The Link Tag Specifies a Web link href="{@url}" The Picture Tag Stand-alone tag; no need for <xsl:apply-templates/> All information expressed as tag attributes 1-21 1-22 17-21 17-22 Developing Tags and Templates (cont'd) The Remark Tag Captions and labels The Poetry Tags Title, author, and lines of poetry assign tags to each The Video Tag Display a player as an embedded object (YouTube) Stand-alone tag like the picture tag A Check of the Design 1-23 1-24 17-23 17-24

1-25 1-26 17-25 17-26 Critiquing and Evaluating the Results Using the idiary Daily Form of Entries Add breaks and horizontal line to separate entries Compact entries by limiting the width of the table data Remarks On <remark> New Label tag to bold the information it encloses Archiving Photos Putting the path to images in the XML file (versus the XSL file) allows us to make references to images stored in different places, including images stored elsewhere on the Internet 1-27 1-28 17-27 17-28

Using the idiary Daily (cont'd) Using the idiary Daily (cont'd) Hiding Information Enclose personal information you do not want displayed in <personal> tags Do not include <xsl:apply-templates/> tag in the XSL template for <personal> Information inside the tags will be skipped Note: Not enclosing information in a tag or tagging it but not providing a template for the tag will result in the content being displayed Entering Data into the Database Create a "template" for a new entry in the XML database file Just copy/paste this "template" and edit it 1-29 1-30 17-29 17-30