Extensible Markup Language

Slides:



Advertisements
Similar presentations
Table, List, Blocks, Inline Style
Advertisements

Table (TABLE) Contains TABLE ROWS (TR) Contains TABLE DATA (TD) Data can contain anything Text Lists Other tables Pictures …
XML and Enterprise Computing. What is XML? Stands for “Extensible Markup Language” –similar to SGML and HTML –document “tags” are used to define content.
1 XSLT – eXtensible Stylesheet Language Transformations Modified Slides from Dr. Sagiv.
SPECIAL TOPIC XML. Introducing XML XML (eXtensible Markup Language) ◦A language used to create structured documents XML vs HTML ◦XML is designed to transport.
HTML/XML XHTML Authoring. Creating Tables  Table: An arrangement of horizontal rows and vertical columns. The intersection of a row and a column is called.
CS 898N – Advanced World Wide Web Technologies Lecture 21: XML Chin-Chih Chang
XML Extensible Markup Language Standard supported by W3C (World Wide Web Consortium) HTML – End user oriented (presentation) XML – Application oriented.
September 15, 2003Houssam Haitof1 XSL Transformation Houssam Haitof.
17 Apr 2002 XML Stylesheets Andy Clark. What Is It? Extensible Stylesheet Language (XSL) Language for document transformation – Transformation (XSLT)
ECA 228 Internet/Intranet Design I Intro to XML. ECA 228 Internet/Intranet Design I HTML markup language very loose standards browsers adjust for non-standard.
Chapter 12 Creating and Using XML Documents HTML5 AND CSS Seventh Edition.
CPS120: Introduction to Computer Science The World Wide Web Nell Dale John Lewis.
Introduction to XML cs3505. References –I got most of this presentation from this site –O’reilly tutorials.
XML – Extensible Markup Language XML eXtensible – add to language. Markup – delimit info using tags. Language – a way to express info.
XML. Markup Languages u What does this number (100) mean? –Actually, it’s just a string of characters! –A markup language can be used to distinguish this.
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.
XML Extensible Markup Language. Markup Languages u What does this number (100) mean? –Actually, it’s just a string of characters! –A markup language can.
XHTML,XML M.Abdullah Mrian. What is the XHTML Why XHTML ?
Introduction to HTML. What is a HTML File?  HTML stands for Hyper Text Markup Language  An HTML file is a text file containing small markup tags  The.
XML About XML Things to be known Related Technologies XML DOC Structure Exploring XML.
JSTL, XML and XSLT An introduction to JSP Standard Tag Library and XML/XSLT transformation for Web layout.
CITA 330 Section 6 XSLT. Transforming XML Documents to XHTML Documents XSLT is an XML dialect which is declared under namespace "
IST 221 Internet Concepts and Applications Introduction to XML II CSS and XSLT Style Sheets.
Lecture 11 XSL Transformations (part 1: Introduction)
1 XML An Overview Roger Debreceny University of Hawai`i Skip White University of Delaware XBRL Workshop, August 2006.
HTML: Hyptertext Markup Language Doman’s Sections.
1 Introduction  Extensible Markup Language (XML) –Uses tags to describe the structure of a document –Simplifies the process of sharing information –Extensible.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Applying eXtensible Style Sheets (XSL) Ellen Pearlman Eileen Mullin Programming.
Accessing Data Using XML CHAPTER NINE Matakuliah: T0063 – Pemrograman Visual Tahun: 2009.
Basic Table Elements. 2 Objectives Define table elements Describe the steps used to plan, design, and code a table Create a borderless table with text.
1 Credits Prepared by: Rajendra P. Srivastava Ernst & Young Professor University of Kansas Sponsored by: Ernst & Young, LLP (August 2005) XBRL Module Part.
Using XML to store Descriptive Metadata Richard Murphy Rosarie O’Riordan Central Statistics Office Ireland.
Jennifer Widom XML Data Introduction, Well-formed XML.
Dr. Chunbo Chu Week 3. XML Not a replacement for HTML. XML and HTML were designed with different goals: XML was designed to transport and store data,
 XSL – Extensible Style Sheet Language  XSLT – XSL Transformations › Used to transform XML documents to other formats,like HTML or other XML documents.
Accessing XML Documents Using DOM ©NIITeXtensible Markup Language/Lesson 8/Slide 1 of 23 Objectives In this lesson, you will learn to: * Use XML DOM objects.
CHAPTER NINE Accessing Data Using XML. McGraw Hill/Irwin ©2002 by The McGraw-Hill Companies, Inc. All rights reserved Introduction The eXtensible.
Connecting to External Data. Financial data can be obtained from a number of different data sources.
XML Schema – XSLT Week 8 Web site:
Glencoe Introduction to Web Design Chapter 4 XHTML Basics 1 Review Do you remember the vocabulary terms from this chapter? Use the following slides to.
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.
In this session, you will learn to:
.
XSLT: The XML transformation language
Introduction to HTML.
XML: Extensible Markup Language
XML Introduction Bill Jerome.
Project 1 Introduction to HTML.
Organizing Content with Lists and Tables
Displaying XML Data with XSLT
Elements of HTML Web Design – Sec 3-2
XML QUESTIONS AND ANSWERS
Project 1 Introduction to HTML.
XSLT 1.0.
CSC 110 – Fluency in Information Technology Databases, XML and XSL
Microsoft Access 2003 Illustrated Complete
Introduction to web design discussing which languages is used for website designing
ACG 4401 XSLT Extensible Stylesheet Language for Transformations
Prepared for Md. Zakir Hossain Lecturer, CSE, DUET Prepared by Miton Chandra Datta
XML Data Introduction, Well-formed XML.
Applying eXtensible Style Sheets (XSL)
XML WITH CSS.
Web Design and Development
IEEM 5352 E-Enterprise Integration
Extensible Markup Language
WHAT IS XSLT?.
Introduction to XHTML Cont:.
Introduction to HTML.
Unit 6 - XML Transformations
Presentation transcript:

Extensible Markup Language XML

Markup Languages What does this number (100) mean? Actually, it’s just a string of characters! A markup language can be used to distinguish this string of characters from other strings and to add some meaning to it A markup language is simply a computer language of codes and tags (a.k.a. containers) <weight>100</weight>

The HTML code used to make web pages indicates how data should be DISPLAYED. <b><u>Text that is bold and underlined</u></b> <h1>Large font size</h1> <ul><li>Text that is in a bulleted list</li></ul> HTML does not tell you what the data actually is. XML indicates what the data really is. It provides context for the data being transmitted. <weight>150</weight> <price>$100</price> <color>Blue</color> Data provided about data XML=eXtensible Markup Language. Users can create their own tags (unless you are mandated to use certain, specified tags)

The Machine is Us/ing Us http://www.youtube.com/watch?v=NLlGopyXT_g&feature=player_detailpage

XML adds meaning or context to the data that is being transmitted. <weight>100</weight> XBRL (eXtensible Business Reporting Language) is a specific XML schema that describes the elements/data in financial statements.

How Would You Describe A building at KSU A person Name Location When Built Architect Primary College Using the Building A university in the Big 12 City State Mascot Abbreviation Color (primary school color) A person Last Name First Name Age Gender Hair Color Weight Height Birthdate College Major

(an XML instance document) <?xml version=“1.0”?> <SelectedBig12Universities> <University> <name>Kansas State University</name> <city>Manhattan</city> <state>Kansas</state> <mascot>Wildcat</mascot> <abbreviation> KSU</abbreviation> <color> Purple</color> </University> <name> University of Kansas</name> <city>Lawrence</city> <mascot> Jayhawk </mascot> <abbreviation> KU</abbreviation> <color> Blue</color> </SelectedBig12Universities>

SelectedBig12Universities Instance Document Abbreviation Color Name City State Mascot Abbreviation Color Color Abbreviation Name City State Mascot Name City State Mascot University University University Root element: Selected Big 12 Universities Mid-level elements: individual universities Individual data content SelectedBig12Universities A tree hierarchy that describes the overall data content

Core XML Technologies The XML Instance document XML Schemas Stores data in a hierarchical format XML Instance documents are the heart of XML. XML Schemas Defines the structure of a valid XML instance document and the types of values that elements may hold. XML Schemas are used to validate the XML instance documents. Someone who has your schema knows what the information that you will be sending them or exchanging with them will look like. XSL (the extensible Stylesheet Language) Describes how the XML data should be displayed Used to convert an XML instance document from one format to another. Some of the formatting can be undertaken using HTML.

An XML Instance Document <?xml version=“1.0”?> <SelectedBig12Universities> <University> <name>Kansas State University</name> <city>Manhattan</city> <state>Kansas</state> <mascot>Wildcat</mascot> <abbreviation> KSU</abbreviation> <color> Purple</color> </University> <name> University of Kansas</name> <city>Lawrence</city> <mascot> Jayhawk </mascot> <abbreviation> KU</abbreviation> <color> Blue</color> </SelectedBig12Universities> Follows a hierarchical format that you can expand or collapse Link

Inventory Schema A description of the rules that “valid” XML instance documents must follow. Applications that understand a schema know what to expect and can process any associated, valid documents. Schemas define the content, organization, and structure of valid instance documents.

Used to format instance documents The XSL Stylesheet <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match = "/"> <HTML> <TABLE BORDER = "1"> <xsl:for-each select="inventory/item"> <TR> <TD> <xsl:value-of select="."/> </TD></TR> </xsl:for-each> </TABLE> </HTML> </xsl:template> </xsl:stylesheet> Used to format instance documents

5 row, 4 column table with multiple cells <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match = "/"> <HTML> <TABLE BORDER = "1"> <TR> <TH>Item</TH> <TH>Cost</TH> <TH>QOH</TH> <TH>TOTAL</TH></TR> <xsl:for-each select="inventory/item"> <TD> <xsl:value-of select="name"/> </TD> <TD> <xsl:value-of select="cost"/> </TD> <TD> <xsl:value-of select="qoh"/> </TD> <TD> <xsl:value-of select="cost * qoh"/> </TD></TR> </xsl:for-each> </TABLE> </HTML> </xsl:template> </xsl:stylesheet> 5 row, 4 column table with multiple cells XSL Stylesheet

XML Summary Extensible Markup Language HTML was designed to display data and to focus on how data looks. XML was designed to describe data and to focus on what data is. XML Technologies Instance documents hold data. Schemas define valid documents (what they look like and what they must contain) Stylesheets describe how to format the data. XML is the new foundation/standard for exchanging business documents electronically.

Example of Instance Document Coding