XML, XSL, XSLT, XHTML and others By Sean Hunter. Why XML?  XML was created to be a quick and easy way to provide structured data over the web.  Existing.

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?
XML: Extensible Markup Language
 Fundamentals of Web Design.  Describe the history and theory of XHTML  Understand the rules for creating valid XHTML documents  Apply a DTD to an.
1 CP3024 Lecture 9 XML revisited, XSL, XSLT, XPath, XSL Formatting Objects.
XML eXtensible Markup Language ©2010 Paula Schales.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic XML.
XML Introduction What is XML –XML is the eXtensible Markup Language –Became a W3C Recommendation in 1998 –Tag-based syntax, like HTML –You get to make.
XML Vikki Brandon Jesse Josh. Quick Facts Who created it? –W3C Jon Bosak and Tim Bray as leaders and major contributors When? –Started in 1996 and finished.
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.
1 Advanced Topics XML and Databases. 2 XML u Overview u Structure of XML Data –XML Document Type Definition DTD –Namespaces –XML Schema u Query and Transformation.
Introducing HTML & XHTML:. Goals  Understand hyperlinking  Understand how tags are formed and used.  Understand HTML as a markup language  Understand.
Introduction to XML: Part I By Sandeep Jangity CS 157B, Section 2 Dr. Lee.
XML at Work John Arnett, MSc Standards Modeller Information and Statistics Division NHSScotland Tel: (x2073)
August Chapter 1 - Introduction Learning XML by Erik T. Ray Slides were developed by Jack Davis College of Information Science and Technology Radford.
Introduction to XML cs3505. References –I got most of this presentation from this site –O’reilly tutorials.
WPF chapter 15 Dr. John Abraham Professor UTPA. WPF –an introduction WPF provides a single platform capable of handling graphics, audio and video. WPF.
Scientific Markup Languages Birds of a Feather A 10-Minute Introduction to XML Timothy W. Cole Mathematics Librarian & Professor of.
CREATED BY ChanoknanChinnanon PanissaraUsanachote
XML The Overview. Three Key Questions What is XML? What Problems does it solve? Where and how is it used?
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.
An Introduction to XML Presented by Scott Nemec at the UniForum Chicago meeting on 7/25/2006.
XML Overview. Chapter 8 © 2011 Pearson Education 2 Extensible Markup Language (XML) A text-based markup language (like HTML) A text-based markup language.
1 © Netskills Quality Internet Training, University of Newcastle Introducing XML © Netskills, Quality Internet Training University.
Demystifying the eXtensible Markup Language Nick Roberts & Jim Few
XML BIS4430 – unit 10. XML Origins Extensible Markup Language (XML) 1998 Inspired by Standard Generalized Markup Language (SGML) and HTML. SGML defines.
XHTML,XML M.Abdullah Mrian. What is the XHTML Why XHTML ?
 XML is designed to describe data and to focus on what data is. HTML is designed to display data and to focus on how data looks.  XML is created to structure,
EXtensible Markup Language (XML) and Documentation --ManojBokil -- Manoj Bokil.
Intro. to XML & XML DB Bun Yue Professor, CS/CIS UHCL.
XML About XML Things to be known Related Technologies XML DOC Structure Exploring XML.
XML TUTORIAL Portions from w3 schools By Dr. John Abraham.
XML A web enabled data description language 4/22/2001 By Mark Lawson & Edward Ryan L’Herault.
XML 2nd EDITION Tutorial 1 Creating An Xml Document.
CP3024 Lecture 9 XML: Extensible Markup Language.
Windows Presentation Foundation (WPF) Chapter 16 Dr. Abraham.
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.
XP 1 Creating an XML Document Developing an XML Document for the Jazz Warehouse XML Tutorial.
XML Design Goals 1.XML must be easily usable over the Internet 2.XML must support a wide variety of applications 3.XML must be compatible with SGML 4.It.
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.
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 –
COP 3813 Intro to Internet Computing Prof. Roy Levow XML.
Unit 3 — Advanced Internet Technologies Lesson 11 — Introduction to XSL.
SCHOOL OF LIBRARY, ARCHIVE AND INFORMATION STUDIES Andy Dawson LIS1510 Library and Archives Automation Issues XML and extensible systems Andy Dawson School.
Martin Kruliš by Martin Kruliš (v1.1)1.
XML The Overview. Three Key Questions What is XML? What Problems does it solve? Where and how is it used?
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 derives its strength from a variety of supporting technologies.  Structure and data types: When using XML to exchange data among clients, partners,
CHAPTER NINE Accessing Data Using XML. McGraw Hill/Irwin ©2002 by The McGraw-Hill Companies, Inc. All rights reserved Introduction The eXtensible.
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.
1 Extensible Stylesheet Language (XSL) Extensible Stylesheet Language (XSL)
Beyond HTML: Extensible Markup Language (XML)
Kynn Bartlett 11 April 2001 STC San Diego The HTML Writers Guild Copyright © 2001 XML, XHTML, XSLT, and other X-named specifications.
Extensible Markup Language (XML) Pat Morin COMP 2405.
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.
XML: Extensible Markup Language
Unit 4 Representing Web Data: XML
XML Related Technologies
HTML5 – Heading, Paragraph
XML in Web Technologies
Session I - Introduction
Session I - Introduction
Chapter 7 Representing Web Data: XML
Introducing HTML & XHTML:
XML Data Introduction, Well-formed XML.
Extensible Markup Language (XML)
Presentation transcript:

XML, XSL, XSLT, XHTML and others By Sean Hunter

Why XML?  XML was created to be a quick and easy way to provide structured data over the web.  Existing HTML and SGML either did not allow arbitrary structure, or were too complex.  XML’s simplicity allows programmers to write parsers for it quickly and easily.

What is XML?  Extensible Markup Language  XML is a human readable database  XML is fully conformant SGML, but XML parsers do conform to all of SGML.  As any markup language, XML provides a way to create structure in a document

Elements of XML  XML declaration: Not required, however it provides information on how to process the XML documentNot required, however it provides information on how to process the XML document  Tags:,  Tags:,  Attributes:  Attributes:  Values: A’s Value  Values: A’s Value

Example One One Two Two One One </list>

Document Type Definitions  Provides a way to standardize an XML document  Declares what elements can exist, what elements can nest in other elements, how many of a element are allowed, what attributes are allowed on a element, etc.

Example The * means that a LIST element may contain zero or more ITEM’s. ITEM may contain either text (#PCDATA) or another LIST element.

XSL and XSLT  Extensible Stylesheet Language Transformations  Provides a method to transmute XML into already existing data structures such as HTML, PDF, GIF, etc.  Sometimes companies want to keep the XML hidden, and only provide the transmuted data, or simply provide a more humanly readable format of their data.

Example - XML <motd>xml.com</motd>

Example - XSLT <body> Current message of the day: Current message of the day: </body></html>

Result Current message of the day: xml.com

XHTML  One major problem that many web designers have is that their website will look different across multiple different web browsers. Something on Firefox may look different from something on Opera, and IE.  XHTML creates a much stricter form of HTML that should, ideally, only have one way to be displayed across all browsers.  Because HTML does not have to be valid form for a browser to display it, XTML is preferred on cell phones and similar devices due to needing less processing to fix broken code.

RDF  RDF: Resource Description Framework  A possible way of describing resources in the internet.  Ex (From xml.com): Tim Bray Tim Bray </rdf:Description>

RSS  RDF Site Summary  A news feeder that many websites use to provide information about news on their website in a standard format using XML.

 XML.com XML.com features a rich mix of information and services for the XML community. en-us Normalizing XML, Part 2 zing.html In this second and final look at applying relational normalization techniques to W3C XML Schema data modeling, Will Provost discusses when not to normalize, the scope of uniqueness and the fourth and fifth normal forms. Will Provost  XML.com XML.com features a rich mix of information and services for the XML community. en-us Normalizing XML, Part 2 zing.html In this second and final look at applying relational normalization techniques to W3C XML Schema data modeling, Will Provost discusses when not to normalize, the scope of uniqueness and the fourth and fifth normal forms. Will Provost  

XPath/XQuery  XPath: Used in XSL to find a particular element. Ex: body//p[position()=1] to get the first element in  XPath: Used in XSL to find a particular element. Ex: body//p[position()=1] to get the first element in  XQuery: A programming language for use in XML  Example, combining XPath and XQuery to print the chapters in a book from an XML structure (Taken from xml.com): { let $book := document("mybook.xml")/book for $ch in $book/chapter return {$ch/title) } { let $book := document("mybook.xml")/book for $ch in $book/chapter return {$ch/title) }

References  O’Reilly’s XML.com  World Wide Web Consortium W3C.org