Using the Power of XML Personally

Slides:



Advertisements
Similar presentations
MA foundation Creating webpages using XHTML (part 1) Simon Mahony CCH
Advertisements

HTML Basics Customizing your site using the basics of HTML.
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
Hypertext markup language.  Client asks for an html file  Server returns the html file  Client parses and displays it  This display is what most people.
Cascading Style Sheets
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.
Anne McGrath 16 th February  Review of what we have learned so far.  Angled brackets surround HTML tags.  The words between the angled brackets.
XSL eXtensible Stylesheet Language. What is XSL? XSL is a language that allows one to describe a browser how to process an XML file. XSL can convert an.
XHTML Basics.
XSL XSLT and XPath 11-Apr-17.
XML Unit 6 October 31. XML, review XML is used to markup data Used to describe information Uses tags like HTML –But all tags are user-defined –Must be.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
How to Make a Web Page: A Crash Course in HTML programming.
1 HTML Markup language – coded text is converted into formatted text by a web browser. Big chart on pg. 16—39. Tags usually come in pairs like – data Some.
Adding HTML to Blackboard
XSL Unit 6 November 2. XSL –eXtensible Stylesheet Language –Basically a stylesheet for XML documents XSL has three parts: –XSLT –XPath –XSL-FO.
CM143 - Web Week 2 Basic HTML. Links and Image Tags.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley A Case Study in Database Organization The iDiary Database lawrence snyder.
HTMLMR.Mostafa badr1. Lesson 3 HTML Tags Lesson 2 Creating a HTML File Lesson 1: Hyper Text Markup Language (HTML) Basics Get Trained for a Better Future.
Chapter 16 A Case Study in Database Organization.
Fluency with Information Technology INFO100 and CSE100 Katherine Deibel Katherine Deibel, Fluency in Information Technology1.
HTML & CSS A brief introduction. OUTLINE 1.What is HTML? 2.What is CSS? 3.How are they used together? 4.Troubleshooting/Common problems 5.More resources.
NetTech Solutions Working with Web Elements Lesson 6.
.  Entertain  Inform  Educate  Blogs  Sell  Date  Gamble  Religion.
Amber Annett David Bell October 13 th, What will happen What is this business about personal web pages? Designated location of your own web page.
Essential Tags Web Design – Sec 3-3 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
All Web pages are written with some form of HTML (HyperText Markup Language). HTML documents are saved as Text Only files so virtually any computer can.
HTML. WHAT IS HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language A markup language is a set of.
Fluency with Information Technology INFO100 and CSE100 Katherine Deibel Katherine Deibel, Fluency in Information Technology1.
Web Programming Basics of HTML. HTML stands for Hyper Text Mark-up Language A mark-up language is different than those that you have learned before in.
HTML: Hyptertext Markup Language Doman’s Sections.
Week 1 – Beginners Content McAfee & Big Fish Games CoderDojo.
Chapter 16 A Case Study in Database Organization.
Ali Alshowaish. What is HTML? HTML stands for Hyper Text Markup Language Specifically created to make World Wide Web pages Web authoring software language.
Web Site Design & Management Class One Agenda Attendance Questionnaire Introductions Class Policies About the class Code your first page FTP Assignments.
HTML Basic. What is HTML HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language, it.
Lawrence Snyder University of Washington, Seattle © Lawrence Snyder 2004.
Lawrence Snyder University of Washington, Seattle © Lawrence Snyder 2004 Drawing pictures … It’s not art, it’s fun.
Getting Started with HTML. HTML  Hyper Text Markup Language  HTML isn’t a program language, its known as a markup language  A Markup language has tags.
HTML Review * is used as a reference for most of the notes in this powerpoint.
Step 1: Starting an HTML Document: Right Click: new>text document.
Introduction to HTML Dave Edsall IAGenWeb County Coordinator’s Conference June 30, 2007.
XML BASICS and more…. What is XML? In common:  XML is a standard, simple, self-describing way of encoding both text and data so that content can be processed.
Web Basics: HTML/CSS/JavaScript What are they?
Introduction to HTML:.
Fluency with Information Technology
Essential Tags Web Design – Sec 3-3
Images in HTML PowerPoint How images are used in HTML
Elements of HTML Web Design – Sec 3-2
Uppingham Community College
Essential Tags Web Design – Sec 3-3
AN INTRODUCTORY LESSON TO MAKING A SIMPLE WEB PAGE By: RC Emily Solis
Elements of HTML Web Design – Sec 3-2
CSC 110 – Fluency in Information Technology Databases, XML and XSL
HTML.
WEBSITE DESIGN Chp 1
Working with HTML These are the examples you need to go over. Click on the name like HTML5intro.html and it will bring up the page. If you right click.
Lawrence Snyder University of Washington, Seattle
Web Programming A different world! Three main languages/tools No Java
Building Web Applications
Basic HTML and Embed Codes
Intro to Web Development Links
Introduction to HTML5.
Internet Technologies I - Lect.01 - Waleed Ibrahim Osman
Training & Development
XSL XSLT and XPath 24-Feb-19.
HTML Structure.
HTML & CSS 7 Languages in 7 Days.
Pertemuan 1 Desain web Pertemuan 1
The Most Basic HTML Page
Presentation transcript:

Using the Power of XML Personally XML is essential for huge corporate systems …. and for us Using the Power of XML Personally Lawrence Snyder University of Washington, Seattle © Lawrence Snyder 2004

Review … Recall that XML is the land of tags so we can structure input separate from any processing application Three types of tags Identity Affinity Collection 2/24/2019 © 2011 Larry Snyder, CSE

Our Plan For Today We’ll explain how you can create personal XML software for a simple task of interest to you … we’ll use a diary as an example Begin by thinking through the design Second Work A Simple Example Then Consider the Diary Problem 2/24/2019 © 2011 Larry Snyder, CSE

A Diary Of Travels One kind of diary is a travel record Kinds of info: State name What we did A flag adds some interest Also need a title 2/24/2019 © 2011 Larry Snyder, CSE

Big Picture of How This Works Here are the players in this application XML file Any Browser Diary Page XSL file 2/24/2019 © 2011 Larry Snyder, CSE

Building The XML File Use Tags As Usual … Notice Tag Uses 2/24/2019 © 2011 Larry Snyder, CSE

Processing The File For this application, “processing” the file means displaying it on the screen We use a browser to display XML tagged content Here’s how --- For each tag, we say what HTML we want, using “XSL” Put those definitions into a file (they’re called templates) Put directions at the top of the XML definition telling it where to find the definitions file “Run” the XML in Firefox or other browser … it does all the rest! Just Do It! 2/24/2019 © 2011 Larry Snyder, CSE

XSL: Extensible Markup Language XSL is “processing” markup language for XML … and (of course) it’s written in XML Let’s take a look 2/24/2019 © 2011 Larry Snyder, CSE

The Rest of XSL Definition This is the remainder of the Travel Log XSL XSL is just a lot of tags 2/24/2019 © 2011 Larry Snyder, CSE

Take A Look At XSL Structure A browser can show the hierarchy tree of a file written in XML … the XSL file is one The travelLogSS.xsl file The XML file xmlXSL/travelLog.xml 2/24/2019 © 2011 Larry Snyder, CSE

XSL: Extensible Markup Langauge Just looking at XSL, it seems very complicated because it mixes its own tags with HTML tags Standard header text … must be first in XSL file Here’s how to say what XML tag this definition is for Important tag, to be explained next HTML in here 2/24/2019 © 2011 Larry Snyder, CSE

Now, Let’s Just Do It So, we build the skeleton of the XSL with our text editor standard header - copy Say how to style each XML tag “apply-templates” tag says “style inner stuff” All that’s left is HTML 2/24/2019 © 2011 Larry Snyder, CSE

Top-level Tag: <travels> The “root tag” needs to style the main page “style inner stuff” 2/24/2019 © 2011 Larry Snyder, CSE

Continue For Other Tags 2/24/2019 © 2011 Larry Snyder, CSE

Grab the Attribute Value When we have an attribute like <action flag="wash.gif"> we grab the value using a very odd syntax <img src="{@flag}" … 2/24/2019 © 2011 Larry Snyder, CSE

Linking to XSL To make this all happen, we go to the XML and link it to the XSL file Add two “boiler plate” encoding lines (just copy) Make href point to the XSL file 2/24/2019 © 2011 Larry Snyder, CSE

Ta Dah! We have an app! … open XML file with Firefox 2/24/2019 © 2011 Larry Snyder, CSE

Now, Add to Data As Needed The Travel Log app is done; we don’t expect to write more XSL, except to restyle something Just add to XML file 2/24/2019 © 2011 Larry Snyder, CSE

Adding More KINDS of Data What about the pictures??? Add an XML picture tag … like HTML, it will be self-terminating; needs styling XSL, too <pic name="im/mtrainier.jpg" /> goes in XML <xsl:template match="pic"> goes in XSL <img src="{@name}" alt="Travel pic" width="500"/> </xsl:template> Place <pic> tags inside of <action> tags 2/24/2019 © 2011 Larry Snyder, CSE

Adding More XML Suppose our travels take us to Chicago … we have two options: Treat Chicago like any a state sight – it has a flag, for example Add a new kind of visit, maybe a <tour> that is similar to <action> but is used for cities; it can have different attributes, like sports_team="Cubs” Additional XML means more XSL is needed at the start 2/24/2019 © 2011 Larry Snyder, CSE

Assignment 17 Same thing 2/24/2019 © 2011 Larry Snyder, CSE