WML/HTML and XML Multiplatform Applications. Agenda XML – History and purpose What have HTML, WML and XML got to do with each other Why useful for multiplatform.

Slides:



Advertisements
Similar presentations
CSCI N241: Fundamentals of Web Design Copyright ©2004 Department of Computer & Information Science Introducing XHTML: Module B: HTML to XHTML.
Advertisements

DOCUMENT TYPES. Digital Documents Converting documents to an electronic format will preserve those documents, but how would such a process be organized?
XHTML Week Two Web Design. 2 What is XHTML? XHTML is the current standard for HTML Newest generation of HTML (post-HTML 4) but has many new features which.
Dr. Alexandra I. Cristea XHTML.
Standards and Increasing Maintainability on Web- based Systems James Eaton SE4112/16/2006.
Pengantar Teknologi Mobile 13 Antonius Rachmat C, S.Kom, M.Cs XHTML.
CO1552 – Web Application Development An introduction to the use of Extensible Hypertext Mark-up Language - XHTML.
History Leading to XHTML
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML
Tutorial 9 Working with XHTML
XHTML 16-Apr-17.
INF201 Fall2010 Intro. to Info. Technologies Department of Informatics University at Albany – SUNY Original Source: w3schools.com Prepared by Xiao Liang,
17-Jun-15 XHTML 2 What is XHTML? XHTML stands for Extensible Hypertext Markup Language XHTML is aimed to replace HTML.
Upgrading to XHTML DECO 3001 Tutorial 1 – Part 1 Presented by Ji Soo Yoon 19 February 2004 Slides adopted from
Introducing XHTML: Module B: HTML to XHTML. Goals Understand how XHTML evolved as a language for Web delivery Understand the importance of DTDs Understand.
Copyright © 2003 Pearson Education, Inc. Slide 1-1 Created by Cheryl M. Hughes, Harvard University Extension School — Cambridge, MA The Web Wizard’s Guide.
Developing a Basic Web Page Posting Files on UMBC
Introduce of XML Xiaoling Song CS157A. What is XML? XML stands for EXtensible Markup Language XML stands for EXtensible Markup Language XML is a markup.
 Introduction to XML Introduction to XML  Features of XML Features of XML  Syntax of XML Syntax of XML  Syntax rules of XML document Syntax rules.
_ HTML, XHTML & CSS Sami Niemelä | Module 1: Introduction to digital media: Day 02.
 XHTML is aimed to replace HTML  XHTML is almost identical to HTML 4.01  XHTML is a stricter and cleaner version of HTML  XHTML is HTML defined as.
IS432 Semi-Structured Data Lecture 5: XSLT Dr. Gamal Al-Shorbagy.
CS 299 – Web Programming and Design Introduction to HTML.
XHTML The Basics A brief history of HTML SGML (Standard Generalized Markup Language) Then came HTML Followed by the browser…and the great browser wars.
Chapter 1 Understanding the Web Design Environment Principles of Web Design, 4 th Edition.
Week 1 Understanding the Web Design Environment. 1-2 HTML: Then and Now HTML is an application of the Standard Generalized Markup Language Intended to.
XHTML - Basics Teppo Räisänen LIIKE/OAMK Introduction XHTML = eXtensible Hypertext Markup Language Transitional ~ HTML 4.01 Goal: to replace HTML.
Introduction. Document Structure Overview  XML declaration (prolog)  Document type declaration  Root element (namespace)  Document header  Document.
3 XHTML.
1 XHTML محمد احمدی نیا 2 Of 19 HTML vs XHTML  XHTML is a stricter and cleaner version of HTML.  by combining the strengths of HTML.
XHTML. Introduction to XHTML What Is XHTML? – XHTML stands for EXtensible HyperText Markup Language – XHTML is almost identical to HTML 4.01 – XHTML is.
CIS 1315 – Web Development for Educators CIS 1315 HTML Tutorial 9: Working With XHTML.
XHTML,XML M.Abdullah Mrian. What is the XHTML Why XHTML ?
EXtensible Markup Language (XML) and Documentation --ManojBokil -- Manoj Bokil.
XML TUTORIAL Portions from w3 schools By Dr. John Abraham.
Presentation Topic: XML and ASP Presented by Yanzhi Zhang.
XML eXtensible Markup Language. Topics  What is XML  An XML example  Why is XML important  XML introduction  XML applications  XML support CSEB.
XP Tutorial 9 1 Working with XHTML. XP SGML 2 Standard Generalized Markup Language (SGML) A standard for specifying markup languages. Large, complex standard.
CIS 275—Web App Dev I XML. 2 Introduction to XMLXML XML stands for ________________________. HTML was designed to display data. XML was designed to _________.
XHTML and CSS Session 1 Intro, (X)HTML, CSS, W3C, browsers, webpage, structure, tags, attributes, elements, web development process, basic XHTML elements.
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
Windows Presentation Foundation (WPF) Chapter 16 Dr. Abraham.
Chapter 1 Understanding the Web Design Environment Principles of Web Design, 4 th Edition.
HTML Structure & syntax. Introduction This presentation introduces the following: Doctype declaration HTML Tags, Elements and Attributes Sections of a.
Lesson 4.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Creating XHTML Documents Essentials for.
Lecture: Web Design Assis. Prof. Freshta Hanif Ehsan Faculty of Computer Science Kabul Polytechnic University Spring Semester
Copyright © 2003 Pearson Education, Inc. Slide 1-1 Created by Cheryl M. Hughes The Web Wizard’s Guide to XHTML by Cheryl M. Hughes.
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.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 2: Markup Language and Site Development Essentials © 2007 Prosoft Learning Corporation All.
XP Tutorial 9New Perspectives on HTML and XHTML, Comprehensive 1 Working with XHTML Creating a Well-Formed Valid Document Tutorial 9.
CSS THE MISSING MANUAL Introduction. Benefits of CSS Style sheets offer more formatting choices than are offered in straight HTML  EXAMPLE: When you.
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
XP 1 HTML Tutorial 1: Developing a Basic Web Page.
CIS 228 The Internet 9/20/11 XHTML 1.0. “Quirks” Mode Today, all browsers support standards Compliant pages are displayed similarly There are multiple.
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.
Web Design Principles 5 th Edition Chapter 3 Writing HTML for the Modern Web.
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML.
1 Extensible Stylesheet Language (XSL) Extensible Stylesheet Language (XSL)
Extensible Markup Language (XML) Pat Morin COMP 2405.
What is XHTML? XHTML stands for Extensible Hypertext Markup Language
CITA 330 Section 3 XHTML.
Tutorial 9 Working with XHTML
What is XHTML?.
XHTML
XHTML 7-May-19.
XHTML 29-May-19.
محمد احمدی نیا XHTML محمد احمدی نیا
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML
Presentation transcript:

WML/HTML and XML Multiplatform Applications

Agenda XML – History and purpose What have HTML, WML and XML got to do with each other Why useful for multiplatform development XML and DTD XML and XSLT HTML, XML and XHTML Exercises in XML

XML - History XML - Extensible Markup Language Designed to allow the transmission of data rather than data and associated formatting (like HTML) A variant of SGML Standard Generalized Markup Language (ISO 8879:1985) ISO 8879:1985ISO 8879:1985 An international open standard language Designed by the W3C and approved in 1998

Why XML? Designed as a metalanguage Tags can be created and defined by a user (unlike HTML) Designed to make data interchange between systems easier Not designed to replace HTML! Is a lot stricter than HTML in terms of syntax and execution

A metalanguage? You define what is held in the file not how it is displayed You can define your own language for use in an application e.g. WML for WAP Separates the data from the presentation layer Allows multiple applications to access and process the same data Can you see where this is heading?

XML code <mail><to>Patrick</to><from>Mick</from><heading>Meeting</heading> Don't forget we need to meet tonight Don't forget we need to meet tonight </mail>

XML <collection> Greatest Hits Greatest Hits Five Five UK UK Telstar Telstar </collection>

The plan Datasource in XML DB XML Conversion XSLT ??? HTML WML

XML and DTD DTD - Document Type Definition Similar to a CSS but describes the data structure not the format of the file A XML file can be syntactically correct but is not a valid XML file until it has been validated against a DTD These are the rules for the document to adhere to

DTD 2 - example <!DOCTYPE mail [ ]><mail><to>Patrick</to><from>Mick</from><heading>Meeting</heading> Don't forget we need to meet tonight Don't forget we need to meet tonight </mail> Document type is mail Has 4 elements to, from, heading and body The elements are of type PCTYPE

XML and XSLT XML is to XSLT as HTML is to XSLT (nearly!) XSLT stands for eXtensible Stylesheet Language (XSL) Transformations It can turn an XML document into XHTML, WML or whatever you want Became a W3c standard in Nov 1999

XSLT Can use either or in Doctype Combines the XML with formatting to present the information to the user Taking the XML example we used earlier we can combine it with XSLT

XML <collection> Greatest Hits Greatest Hits Five Five UK UK Telstar Telstar </collection>

XSLT file <html><body> My CD Collection My CD Collection Title Artist Title Artist </tr> <tr> </tr></xsl:for-each></table></body></html>

XML + XLST Produces this in a browser My CD Collection TitleArtist Greatest HitsFive

What have HTML, WML and XML got to do with each other? Well not much and a lot! HTML allows you to wrap data and it’s presentation system into one page e.g. Hello Hello Format Content Format XML just presents the data but in a structured way leaving the application to process it e.g. <to>Dave</to><from>Mick</from>

XHTML Extensible Hypertext Mark-up Language Designed to replace HTML Pretty similar to html v4.01 XHTML 1.0 became an official W3C Recommendation January 26, 2000 Allows HTML browser and XML apps to read XHTML doc Cleaner HTML that applies XML rules to it

XHTML - 2 So no missing tags All lowercase tags use style sheets to form pages where possible Insert a space in final tags for current browsers to understand i.e. Insert a space in final tags for current browsers to understand i.e. All name tags are now id tags All XHTML documents must have a DOCTYPE declaration

XHTML types of Doctype Strict, Transitional, and Frameset Strict – use HTML for data and CSS for styling Transitional – Uses HTYML styling as well as for Data – for non CSS browsers Frameset – from frames based rendering Look at W3schools conversion at Or the HTML tidy tool to help you convert your current HTML at

Exercises in XML Like you to look at the online tutorial at And for XSLT s.asp s.asp And for DTD But what do I code in

Tools You can use Dreamweaver MX Or the (free) Altova XMLSpy (available from home.asp) home.asp home.asp Or a text editor and the online Tryit coder at ename=note ename=note ename=note