COS 381 Day 16. Agenda Assignment 4 posted Due April 1 There was no resubmits of Assignment Capstone Progress report Due March 24 Today we will discuss.

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: Extensible Markup Language
XML & Data Structures for the Internet Yingcai Xiao.
Web Services Darshan R. Kapadia Gregor von Laszewski 1http://grid.rit.edu.
Web Services Nasrullah. Motivation about web service There are number of programms over the internet that need to communicate with other programms over.
1 CP3024 Lecture 9 XML revisited, XSL, XSLT, XPath, XSL Formatting Objects.
©Silberschatz, Korth and Sudarshan10.1Database System Concepts W3C Activities HTML: is the lingua franca for publishing on the Web XHTML: an XML application.
COS 381 Day 17. Agenda Questions?? Resources Source Code Available for examples in Text Book in Blackboard
Chapter 10 © 2001 by Addison Wesley Longman, Inc. 1 Chapter 10 Sebesta: Programming the World Wide Web.
XML A brief introduction ---by Yongzhu Li. XML --- a brief introduction 2 CSI668 Topics in System Architecture SUNY Albany Computer Science Department.
COS 381 Day 15. Agenda Assignment 3 Corrected 3 A’s, 1 B, 1 C and 2 D’s Assignment 4 posted Due March 28 Those that wanted to resubmit Assignment 2 must.
CS 898N – Advanced World Wide Web Technologies Lecture 22: Applying XML Chin-Chih Chang
W3C Activities HTML: is the lingua franca for publishing on the Web XHTML: an XML application with a clean migration path from HTML 4.01 CSS: Style sheets.
XML – Extensible Markup Language Sivakumar Kuttuva & Janusz Zalewski.
Chapter 8 Introduction to XML. © 2006 Pearson Addison-Wesley. All rights reserved Introduction - SGML is a meta-markup language - Developed in.
XML Anisha K J Jerrin Thomas. Outline  Introduction  Structure of an XML Page  Well-formed & Valid XML Documents  DTD – Elements, Attributes, Entities.
Chapter 7 © 2013 by Pearson Introduction - SGML is a meta-markup language - HTML was developed using SGML in the early 1990s - specifically for.
Chapter 8 © 2003 by Addison-Wesley, Inc. 1 Chapter 8 Introduction to XML.
Chapter 7 © 2010 by Addison Wesley Longman, Inc Introduction - SGML is a meta-markup language - Developed in the early 1980s; ISO std. In
XML: Overview MIS 181.9: Service Oriented Architecture 2 nd Semester,
School of Computing and Management Sciences © Sheffield Hallam University To understand the Oracle XML notes you need to have an understanding of all these.
Representing Web Data: XML CSI 3140 WWW Structures, Techniques and Standards.
XML Overview. Chapter 8 © 2011 Pearson Education 2 Extensible Markup Language (XML) A text-based markup language (like HTML) A text-based markup language.
XML What is XML? XML v.s. HTML XML Components Well-formed and Valid Document Type Definition (DTD) Extensible Style Language (XSL) SAX and DOM.
1 © Netskills Quality Internet Training, University of Newcastle Introducing XML © Netskills, Quality Internet Training University.
XML 1 Enterprise Applications CE00465-M XML. 2 Enterprise Applications CE00465-M XML Overview Extensible Mark-up Language (XML) is a meta-language that.
XHTML,XML M.Abdullah Mrian. What is the XHTML Why XHTML ?
Intro. to XML & XML DB Bun Yue Professor, CS/CIS UHCL.
1 Introduction to Web Application Introduction to XML.
Dr. Ahmet Cengizhan Dirican BIL 374 Internet Technologies 7. XML.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter X IXXXXXXXXXX XXXXXX.
IST 221 Internet Concepts and Applications Introduction to XML II CSS and XSLT Style Sheets.
Lecture 11 XSL Transformations (part 1: Introduction)
XML Extensible Markup Language
XML – An Introduction Structured Data Mark-up James McCartney CSCE 590, Cluster and Grid Computing.
Softsmith Infotech XML. Softsmith Infotech XML EXtensible Markup Language XML is a markup language much like HTML Designed to carry data, not to display.
WEB BASED DATA TRANSFORMATION USING XML, JAVA Group members: Darius Balarashti & Matt Smith.
Chapter 7 © 2014 by Pearson Education Introduction - SGML is a meta-markup language - Developed in the early 1980s; ISO std. In HTML was developed.
Chapter 8 Introduction to XML. © 2006 Pearson Addison-Wesley. All rights reserved Introduction - SGML is a meta-markup language - Developed in.
Lecture 16 Introduction to XML Boriana Koleva Room: C54
CEAL 2003 XML for CJK Wooseob Jeong School of Information Studies University of Wisconsin - Milwaukee.
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.
Copyright © 2013 Curt Hill SOAP Protocol for exchanging data and Enabling Web Services.
COS 381 Day 14. Agenda Questions?? Resources Source Code Available for examples in Text Book in Blackboard
1 Web Services Web and Database Management System.
CS 157B: Database Management Systems II February 11 Class Meeting Department of Computer Science San Jose State University Spring 2013 Instructor: Ron.
XML Presented by Kushan Athukorala. 2 Agenda XML Overview Entity References Elements vs. Atributes XML Validation DTD XML Schema Linking XML and CSS XSLT.
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.
CS3101: Internet Programming Chapter 06: XML and RSS.
1 Introduction JAXP. Objectives  XML Parser  Parsing and Parsers  JAXP interfaces  Workshops 2.
©Silberschatz, Korth and Sudarshan10.1Database System Concepts W3C - The World Wide Web Consortium W3C - The World Wide Web Consortium.
Martin Kruliš by Martin Kruliš (v1.1)1.
XML Tools (Chapter 4 of XML Book). What tools are needed for a complete XML application? n Fundamental components n Web infrasructure n XML development.
Dr. Ahmet Cengizhan Dirican BIL 374 Internet Technologies 7. XML.
 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:
XML Extensible Markup Language
Rendering XML Documents ©NIITeXtensible Markup Language/Lesson 5/Slide 1 of 46 Objectives In this session, you will learn to: * Define rendering * Identify.
XML 1.Introduction to XML 2.Document Type Definition (DTD) 3.XML Parser 4.Example: CGI Gateway to XML Middleware.
Chapter 8 Introduction to XML.
Unit 4 Representing Web Data: XML
XML in Web Technologies
XSLT 1.0.
Chapter 7 Representing Web Data: XML
Chapter X IXXXXXXXXXXXXXXXX.
XML Data Introduction, Well-formed XML.
7.1 Introduction - SGML is a meta-markup language
Unit 6 - XML Transformations
Presentation transcript:

COS 381 Day 16

Agenda Assignment 4 posted Due April 1 There was no resubmits of Assignment Capstone Progress report Due March 24 Today we will discuss XML

8.7 Displaying Raw XML Documents - There is no presentation information in an XML document - An XML browser should have a default style sheet for an XML document that does not specify one - You get a stylized listing of the XML

- A CSS style sheet for an XML document is just a list of its tags and associated styles - The connection of an XML document and its style sheet is made through an xml-stylesheet processing instruction <?xml-stylesheet type = "text/css" href = "mydoc.css"?> --> SHOW planescss.xml and planes.css planescss.xmlplanes.css 8.8 Displaying XML Documents with CSS

8.9 XSLT Style Sheets Resources XSL began as a standard for presentations of XML documents - Split into two parts: - XSLT - Transformations - XSL-FO - Formatting objects - XSLT uses style sheets to specify transformations -An XSLT processor merges an XML document into an XSLT style sheet - This merging is a template-driven process - An XSLT style sheet can specify page layout, page orientation, writing direction, margins, page numbering, etc.

- The processing instruction we used for connecting a CSS style sheet to an XML document is used to connect an XSLT style sheet to an XML document - An example: <?xml-stylesheet type = "text/xsl" href = "xslplane.xsl" ?> 1977 Cessna Skyhawk Light blue and white 8.8 XSLT Style Sheets (continued)

- An XSLT style sheet is an XML document with a single element, stylesheet, which defines namespaces - If a style sheet matches the root element of the XML document, it is matched with the template: - A template can match any element, just by naming it (in place of / ) - XSLT elements include two different kinds of elements, those with content and those for which the content will be merged from the XML doc - Elements with content often represent HTML elements Happy Easter! 8.8 XSLT Style Sheets (continued)

XSLT Process

- XSLT elements that represent HTML elements are simply copied to the merged document - The XSLT value-of element - Has no content - Uses a select attribute to specify part of the XML data to be merged into the XSLT document - The value of select can be any branch of the document tree  SHOW xslplane.xml xslplane.xslxslplane.xml xslplane.xsl - The XSLT for-each element - Used when an XML document has a sequence of the same elements --> SHOW xslplanes.xml xslplanes.xml --> SHOW xslplanes.xsl xslplanes.xsl 8.8 XML Transformations and Style Sheets (continued)

Using Child templates xslplane1.xml xslpane1.xsl

- Purposes: 1. Check the syntax of a document for well- formedness 2. Replace all references to entities by their definitions 3. Copy default values (from DTDs or schemas) into the document 4. If a DTD or schema is specified and the processor includes a validating parser, the structure of the document is validated - Two ways to check well-formedness: 1. A browser with an XML parser 2. A stand-alone XML parser - There are two different approaches to designingXML processors: - SAX and the DOM approach 8.10 XML Processors

- The SAX (Simple API for XML) Approach: - Widely accepted and supported - Based on the concept of event processing: - Every time a syntactic structure (e.g., a tag, an attribute, etc.) is recognized, the processor raises an event - The application defines event handlers to respond to the syntactic structures - The DOM Approach - The DOM processor builds a DOM tree structure of the document (Similar to the processing by a browser of an XHTML document) - When the tree is complete, it can be traversed and processed 8.10 XML Processors (continued)

- Advantages of the DOM approach: 1. Good if any part of the document must be accessed more than once 2. If any rearrangement of the document must be done, it is facilitated by having a representation of the whole document in memory 3. Random access to any part of the document is possible 4. Because the whole document is parsed before any processing takes place, processing of an invalid document is avoided - Disadvantages of the DOM approach: 1. Large documents require a large memory 2. The DOM approach is slower - Note: Most DOM processors use a SAX front end 8.10 XML Processors (continued)

- The ultimate goal of Web services: - Allow different software in different places, written in different languages and resident on different platforms, to connect and interoperate - The Web began as provider of markup documents, served through the HTTP methods, GET and POST - An information service system - A Web service is closely related to an information service - Rather than having a server provide documents, the server provides services, through server- resident software - The same Web server can provide both documents and services - The original Web services were provided via Remote Procedure Call (RPC), through two technologies, DCOM and CORBA - DCOM and CORBA use different protocols, which defeats the goal of universal component interoperability 8.10 Web Services

- There are three roles required to provide and use Web services: 1. Service providers 2. Service requestors 3. A service registry - Web Serviced Definition Language (WSDL) - Used to describe available services, as well as of message protocols for their use - Such descriptions reside on the Web server - Universal Description, Discovery, and Integration Service (UDDI) - Used to create Web services registry, and also methods that allow a remote system to determine which services are available - Standard Object Access Protocol (SOAP) - An XML-based specification that defines the forms of messages and RPCs - Supports the exchange of information among distributed systems 8.10 Web Services (continued)

Overview