And XML A primer for Web design students. Why PHP and XML? Aren’t these just passing fad buzzwords to make cyber-snobbish people sound intelligently superior.

Slides:



Advertisements
Similar presentations
XML-XSL Introduction SHIJU RAJAN SHIJU RAJAN Outline Brief Overview Brief Overview What is XML? What is XML? Well Formed XML Well Formed XML Tag Name.
Advertisements

XML III. Learning Objectives Formatting XML Documents: Overview Using Cascading Style Sheets to format XML documents Using XSL to format XML documents.
DOCUMENT TYPES. Digital Documents Converting documents to an electronic format will preserve those documents, but how would such a process be organized?
CG0119 Web Database Systems Parsing XML: using SimpleXML & XSLT.
SPECIAL TOPIC XML. Introducing XML XML (eXtensible Markup Language) ◦A language used to create structured documents XML vs HTML ◦XML is designed to transport.
XML: Managing Data Exchange Stylesheets. Lesson Contents CSS The basic XSL file XSL transforms Templates Sort Numbering Parameters and Variables Datatypes.
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.
Project 1 Introduction to HTML.
Chapter Concepts Review Markup Languages
Tutorial 11 Creating XML Document
1st Project Introduction to HTML.
HTML 1 Introduction to HTML. 2 Objectives Describe the Internet and its associated key terms Describe the World Wide Web and its associated key terms.
Chapter ONE Introduction to HTML.
ECA 228 Internet/Intranet Design I Intro to XSL. ECA 228 Internet/Intranet Design I XSL basics W3C standards for stylesheets – CSS – XSL: Extensible Markup.
Chapter 12 Creating and Using XML Documents HTML5 AND CSS Seventh Edition.
XML – Extensible Markup Language Sivakumar Kuttuva & Janusz Zalewski.
Creating a Basic Web Page
XML Anisha K J Jerrin Thomas. Outline  Introduction  Structure of an XML Page  Well-formed & Valid XML Documents  DTD – Elements, Attributes, Entities.
Chapter 16 The World Wide Web. 2 The Web An infrastructure of information combined and the network software used to access it Web page A document that.
Copyright © 2012 Accenture All Rights Reserved.Copyright © 2012 Accenture All Rights Reserved. Accenture, its logo, and High Performance Delivered are.
XP 1 CREATING AN XML DOCUMENT. XP 2 INTRODUCING XML XML stands for Extensible Markup Language. A markup language specifies the structure and content of.
Introduction to XML Eugenia Fernandez IUPUI. What is XML? From the World Wide Web Consortium (W3C) The Extensible Markup Language (XML) is the universal.
Another PillowTalk Presentation  2004 Dynamic Systems, Inc. Introduction to XML for SOA Lee H. Burstein,
1 CIS336 Website design, implementation and management (also Semester 2 of CIS219, CIS221 and IT226) Lecture 6 XSLT (Based on Møller and Schwartzbach,
XHTML,XML M.Abdullah Mrian. What is the XHTML Why XHTML ?
HTML, XHTML, and CSS Sixth Edition Chapter 1 Introduction to HTML, XHTML, and CSS.
XML About XML Things to be known Related Technologies XML DOC Structure Exploring XML.
XML A web enabled data description language 4/22/2001 By Mark Lawson & Edward Ryan L’Herault.
CITA 330 Section 6 XSLT. Transforming XML Documents to XHTML Documents XSLT is an XML dialect which is declared under namespace "
Presentation Topic: XML and ASP Presented by Yanzhi Zhang.
Lecture 11 XSL Transformations (part 1: Introduction)
XML eXtensible Markup Language. Topics  What is XML  An XML example  Why is XML important  XML introduction  XML applications  XML support CSEB.
E0262 – MIS – Multimedia Storage Techniques XML (Extensible Markup Language  XML is a markup language for creating documents containing structured information.
1 Introduction  Extensible Markup Language (XML) –Uses tags to describe the structure of a document –Simplifies the process of sharing information –Extensible.
Introduction to XML This presentation covers introductory features of XML. What XML is and what it is not? What does it do? Put different related technologies.
CEAL 2003 XML for CJK Wooseob Jeong School of Information Studies University of Wisconsin - Milwaukee.
Accessing Data Using XML CHAPTER NINE Matakuliah: T0063 – Pemrograman Visual Tahun: 2009.
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.
XML Introduction. Markup Language A markup language must specify What markup is allowed What markup is required How markup is to be distinguished from.
1 Tutorial 11 Creating an XML Document Developing a Document for a Cooking Web Site.
Jennifer Widom XML Data Introduction, Well-formed XML.
Advanced Technical Writing 2006 Session #4. Today in Class… ► Meet with your editorial team, refine/post deliverables ► Send URL for deliverables to Bill.
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 1COMP9321, 15s2, Week.
XML A Language Presentation. Outline 1. Introduction 2. XML 2.1 Background 2.2 Structure 2.3 Advantages 3. Related Technologies 3.1 DTD 3.2 Schemas and.
Web Technologies Lecture 4 XML and XHTML. XML Extensible Markup Language Set of rules for encoding a document in a format readable – By humans, and –
XSLT. XSLT stands for Extensible Stylesheet Language Transformations XSLT is used to transform XML documents into other kinds of documents. XSLT can produce.
XML The Extensible Markup Language (XML ), which is comparable to SGML and modeled on it, describes how to describe a collection of data. A standard way.
HTML Concepts and Techniques Fifth Edition Chapter 1 Introduction to HTML.
INFSY 547: WEB-Based Technologies Gayle J Yaverbaum, PhD Professor of Information Systems Penn State Harrisburg.
Chapter 1 Introduction to HTML, XHTML, and CSS HTML5 & CSS 7 th Edition.
XSLT: How Do We Use It? Nancy Hallberg Nikki Massaro Kauffman.
8 th Semester, Batch 2009 Department Of Computer Science SSUET.
C Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Introduction to XML Standards.
 XML derives its strength from a variety of supporting technologies.  Structure and data types: When using XML to exchange data among clients, partners,
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Chapter 13 A & B Programming Languages and the.
CHAPTER NINE Accessing Data Using XML. McGraw Hill/Irwin ©2002 by The McGraw-Hill Companies, Inc. All rights reserved Introduction The eXtensible.
XML Extensible Markup Language
XML Introduction to XML Extensible Markup Language.
1 LM 6 Database Applications Dr. Lei Li. Learning Objectives Explain three components of a client-server system Describe differences between a 2-tiered.
XML Notes taken from w3schools. What is XML? XML stands for EXtensible Markup Language. XML was designed to store and transport data. XML was designed.
Rendering XML Documents ©NIITeXtensible Markup Language/Lesson 5/Slide 1 of 46 Objectives In this session, you will learn to: * Define rendering * Identify.
Extensible Markup Language (XML) Pat Morin COMP 2405.
XML: Extensible Markup Language
Project 1 Introduction to HTML.
Unit 4 Representing Web Data: XML
XML QUESTIONS AND ANSWERS
Chapter 7 Representing Web Data: XML
XML Data Introduction, Well-formed XML.
Unit 6 - XML Transformations
Presentation transcript:

and XML A primer for Web design students

Why PHP and XML? Aren’t these just passing fad buzzwords to make cyber-snobbish people sound intelligently superior at cocktail parties? Can’t I just develop all my information in HTML and leave it at that? If I’m already using HTML on IIS on.NET, why would I want to use PHP and MySQL or XML with XSLT to generate XHTML and XSL-FO to generate PDFs?

Disoriented paranoid state of mind caused by excessive exposure to an overwhelming number of technology acronyms and buzzwords. Easily cured by this presentation. Acronymophobia (ăk'rə-nĭmă'fōbē-ə) n.

Today, we’ll cover… 1.PHP and MySQL for dynamic web pages 2.XML Overview 3.XML terms and processes 4.XML transformations 5.XML software 6.Impact of XML

1. What is PHP? Originally “Personal Home Page,” a variant of Perl scripting language. Open-source language for server-side scripting applications. Works with variety of relational databases to create dynamic web sites on just about any server platform.

index.html résumé.html writing.html presentations.html Web Server Static Web Pages

index.php Dynamic Web Pages Web Server Template XHTML

Basic PHP Template

PHP Variables <?php $txt="Hello World"; echo $txt; ?>

PHP Conditionals <?php $d=date("D"); if ($d=="Fri") echo "Have a nice weekend!"; else echo "Have a nice day!"; ?>

PHP Functions Similar to JavaScript functions, but more powerful. More than 700 unique functions. phpinfo( ) function - used for outputting information phpforms ( ) function - inputting information to database

PHP Form Function Enter your name: Enter your age:

PHP Example English Department reservation system Built from open-source program called MRBS (Meeting Room Booking System)

2. XML overview XML is a metalanguage, i.e. a language that defines the rules and symbols of another language. XML is not used on the web, but instead used to define other markup languages, such as XHTML, the replacement of HTML. Allows us to define markup languages customized to our individual needs instead of relying on pre-existing tags.

Think of XML as…. An indented outline of a very large document. A database table expressed via element tags within one big flattened text file. A family of technologies that work in tandem to express information in a variety of ways. The Rosetta Stone of the information age, allowing you to move information from one context to another through a standardized structure.

XML Example Lee Honeycutt 3938 Christytown Road Story City Iowa

Uses of XML Provides a simpler method of structuring large data sets compared to earlier tagging systems like SGML. Publishes information to various media formats from a single source. Serves as a platform-independent lingua franca for sharing hierarchically structured information between various programs. Embeds links in RSS feeds for news and weblogs.

Impact of XML Provides greater flexibility in organizing information, but also introduces greater complexity. Requires greater upfront planning and design of information sets and their rhetorical use. Separates content from style, which has huge rhetorical implications.

3. Key XML Terms & Processes Elements - similar to HTML, but defined by the user instead. They describe, in human language, the data they surround. Attributes - name and value pairs used to distinguish unique instances of an element. Entities - shorthand placeholders for information used often within a document DTDs & Schemas - declared dictionaries of elements that model a document’s content.

XML Example Lee Honeycutt 3938 Christytown Road Story City Iowa

Purpose of DTDs & Schemas Define the set of allowed tags and attributes in the document. Describe a document’s content model using rules by which tags and data are ordered. Provide easy model management through references to shortcuts and external files.

Anatomy of a DTD Entity - shorthand name/value pairs that make XML docs easier to write and parse. Similar to a Word macro. EX: Elements - define actual markup tags. EX:

Entity placed in a document Though its claim to the first digital computer is debatable, &isu; does have the world’s only six-sided virtual reality facility. When XML is parsed, &isu; expands to “Iowa State University”

4. Transforming XML XSL (Extensible Stylesheet Language) - special type of XML document that transforms XML data into styled format. Similar to HTML’s Cascading Stylesheets. XSLT (Transformations) - usually used for transformation to XHTML. XSL-FO (Formatting Objects) - used for page formats such as PDF and MS Word.

XML Transformations XML DTD XSLTXSL-FOXHTML

XSLT stylesheets… …contain two types of elements: Instructions - describe how nodes of the XML document will be transformed. Literals - output text, such as XHTML tags, that appear exactly as they appear in the stylesheet. Act as a template for XML content.

Instructions & Literals Browse Record Database Name:

XPath XPath - syntax for describing how nodes of an XML document are processed. Conditionals

5. XML Software Some applications are moving to XML as their foundation. EX: OpenOffice. Most database programs have an XML export feature. XML editors and companion components: Cross Platform - Editix, oXygen, Exchanger Windows - XML Spy, XMetal, and Stylus

6. Impact of XML Provides greater flexibility in organizing information, but also introduces greater complexity. Requires greater upfront planning and design of information sets and their rhetorical use. Separates content from style, which has huge rhetorical implications, just as does the use of CSS.