XML Part 2 Josh Steele CS 6704, Spring 2002. XML Part 2 XSL/XSLT –Structure Revisited –Definition –Example –Components XML’s Linking Languages XML’s Uses.

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.
Open Office.Org What is the Open Office.org Source Project? Open source project through which Sun Microsystems is releasing the technology for the popular.
CG0119 Web Database Systems Parsing XML: using SimpleXML & XSLT.
XSL XSLT and XPath 11-Apr-17.
XML: Managing Data Exchange Stylesheets. Lesson Contents CSS The basic XSL file XSL transforms Templates Sort Numbering Parameters and Variables Datatypes.
1 CP3024 Lecture 9 XML revisited, XSL, XSLT, XPath, XSL Formatting Objects.
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.
Rendering XML documents with XSL The most powerful approaches to rendering XML documents involve using XSL (eXtensible Stylesheet Language) XSL enables.
XSL Concepts Lecture 7. XML Display Options What can XSL Transformations do? generation of constant text suppression of content moving text (e.g., exchanging.
XSL Unit 6 November 2. XSL –eXtensible Stylesheet Language –Basically a stylesheet for XML documents XSL has three parts: –XSLT –XPath –XSL-FO.
XML Technologies and Applications Rajshekhar Sunderraman Department of Computer Science Georgia State University Atlanta, GA 30302
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.
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)
Aalborg University – Department of Production XML Extensible Markup Language Kaj A. Jørgensen Aalborg University, Department of Production XML – Extensible.
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.
Sheet 1XML Technology in E-Commerce 2001Lecture 6 XML Technology in E-Commerce Lecture 6 XPointer, XSLT.
XML Anisha K J Jerrin Thomas. Outline  Introduction  Structure of an XML Page  Well-formed & Valid XML Documents  DTD – Elements, Attributes, Entities.
Why XML ? Problems with HTML HTML design - HTML is intended for presentation of information as Web pages. - HTML contains a fixed set of markup tags. This.
XML – Extensible Markup Language XML eXtensible – add to language. Markup – delimit info using tags. Language – a way to express info.
XML Open Computing Institute, Inc. 1 eXtensible Markup Language (XML)
IS432 Semi-Structured Data Lecture 5: XSLT Dr. Gamal Al-Shorbagy.
XSLT for Data Manipulation By: April Fleming. What We Will Cover The What, Why, When, and How of XSLT What tools you will need to get started A sample.
XSL XML Stylesheet Langauage. XPath Notation for addressing elements in an XML document /xyz - selects the root element /xyz/abc - selects all elements.
Introduction technology XSL. 04/11/2005 Script of the presentation Introduction the XSL The XSL standard Tools for edition of codes XSL Necessary resources.
XP New Perspectives on XML Tutorial 6 1 TUTORIAL 6 XSLT Tutorial – Carey ISBN
CIS 451: XSL Dr. Ralph Westfall February, Problems With XML no formatting capabilities contra formatting tags like, etc. in HTML CSS can be 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.
WORKING WITH XSLT AND XPATH
Session II Chapter 2 – Chapter 2 – XSLhttp://
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 CIS336 Website design, implementation and management (also Semester 2 of CIS219, CIS221 and IT226) Lecture 6 XSLT (Based on Møller and Schwartzbach,
Module Road Map Credit Categories Assignment 2 Credit Category 2 You are able to demonstrate how data may be filtered using Xpath You are able to demonstrate.
XHTML,XML M.Abdullah Mrian. What is the XHTML Why XHTML ?
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.
CITA 330 Section 6 XSLT. Transforming XML Documents to XHTML Documents XSLT is an XML dialect which is declared under namespace "
Extensible Stylesheet Language Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University XSL-FO XSLT.
XSLT Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
CIS 375—Web App Dev II XSL. 2 XSL Introduction XSL stands for _____________________________. XSL is the language used for manipulating and displaying.
Lecture 11 XSL Transformations (part 1: Introduction)
Waqas Anwar Next SlidePrevious Slide. Waqas Anwar Next SlidePrevious Slide XML XML stands for EXtensible Markup Language.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Applying eXtensible Style Sheets (XSL) Ellen Pearlman Eileen Mullin Programming.
XLinks Praveen Polishetty. Contents : XLink Capabilities XLink Concepts XLink Core Properties XLink Semantic Properties XLink Behavior Properties XLink.
1 Tutorial 11 Creating an XML Document Developing a Document for a Cooking Web Site.
XML, XSL, and SOAP Building Object Systems from Documents CSC/ECE 591o Summer 2000.
CS 157B: Database Management Systems II February 11 Class Meeting Department of Computer Science San Jose State University Spring 2013 Instructor: Ron.
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 1COMP9321, 15s2, Week.
Unit 3 — Advanced Internet Technologies Lesson 11 — Introduction to XSL.
More XML XPATH, XSLT CS 431 – February 23, 2005 Carl Lagoze – Cornell University.
 XSL – Extensible Style Sheet Language  XSLT – XSL Transformations › Used to transform XML documents to other formats,like HTML or other XML documents.
Introducing XLink and XPointer ©NIITeXtensible Markup Language/Lesson 10/Slide 1 of 23 Objectives In this lesson, you will learn to: * Identify the types.
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,
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 14 This presentation © 2004, MacAvon Media Productions XML.
XML Extensible Markup Language
XML Schema – XSLT Week 8 Web site:
XSLT, XML Schema, and XPath Matt McClelland. Introduction XML Schema ▫Defines the content and structure of XML data. XSLT ▫Used to transform XML documents.
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.
1 Extensible Stylesheet Language (XSL) Extensible Stylesheet Language (XSL)
Extensible Markup Language (XML) Pat Morin COMP 2405.
XML Related Technologies
Displaying XML Data with XSLT
ACG 4401 XSLT Extensible Stylesheet Language for Transformations
XML Data Introduction, Well-formed XML.
Attributes, Empty-Element Tags, and XSL
Unit 6 - XML Transformations
Presentation transcript:

XML Part 2 Josh Steele CS 6704, Spring 2002

XML Part 2 XSL/XSLT –Structure Revisited –Definition –Example –Components XML’s Linking Languages XML’s Uses

Structure Revisited Information Structure Display XML File XSL File XML Schema (.xsd) File

XSL Stands for Extensible Stylesheet Language Parts: –XSLT – handles transformations –XPath – used to access or refer to parts of an XML document –Formatting objects – XML Vocabulary for specifying formatting semantics Compatible with CSS2 (uses different syntax though)

XSLT Transforms one set of XML tags to another set of XML tags Benefits of this?

Example - XML < Recipe xmlns:rec=“ xmlns:xsi= xsi:schemaLocation=“myxsd.xsd” > Bean Burrito 1 can refried beans 1 cup longhorn colby cheese, shredded …… Empty can of refried beans ……

XML Schema

Example - XSLT <xsl:stylesheet version = “1.0” xmlns:xsl=“ xmlns=“ <xsl: output method=“xml” encoding=“iso ” />

Example - XSLT (cont) Ingredients Cooking Instructions ………

Components Template –Defines what should be changed, and how Pattern –Uses “match=“ attribute in template tag to point to a specific element (uses XPath, more later) Results –Includes the HTML tags specified – - applies template to the text encapsulated by the tag (i.e. )

Components (cont) Text –Literal text can be captured with the tag Repetition –Handled by use of the tag

XML’s Linking Languages XLink –Alternative to XHTML for linking (the tag) – – – works just like (with some more features) –,, - provides a whole new set of linking policies

XLink: Simple Attributes: –href - resource you are linking to –role - string used to describe element’s role –title – optional title of link –show - opens the new resource in its own window (new), embeds it in the current window (embed), or replaces the current window with the new one (replace) –actuate – onRequest (click a link) or auto (like loading in )

XLink:Extended Attributes: –Role, title – as in –showdefault – default value of show for all locator elements –actuatedefault – default value of actuate for all child elements –Needs helpers:,

XLink:Locator These <xlink:extended role=“weapon list” title=“Description of Weapons” showdefault=“new” show actuate=“onRequest”>weapons revolutionized medieval warefare……

XLink:arc Locators can be specified out-of-line – –Allows different show and actuate parameters for each locator xlink:arc specifies those values in above file: xlink:arc from=“sourcedoc” to=“longbowpic” show=“embed” actuate=“auto”/>

XPath Purposes: –To find and describe a section in the XML file (used in XSLT) –To be able to point to a certain part of the document (used in XPointers) In essence makes a parse tree describing the relationships between tags in the file

XPointers Allows one to point into a document (similar to anchors in HTML), but without any special notation (like id=“mytaghere”) Also allows selection of a section of the file (i.e. if you want section 25, it only downloads section 25, not the whole file)

XPointers (cont) 3 ways to reference: –#anchor (like in HTML) –#/1/3/4 (3 rd tag under root, 4 th tag under that) –#xptr (XPath expression) If you aren’t sure if there is an ID, you can concatenate different reference methods together Range: XPtr(id(“c2”) to id(“c3”))

XML Uses MathML – allows math expressions in web pages ( XML-Data – provides mechanism to reference binary data within XML docs XHTML – a merging of XML and HTML WIDL – Web Interface Definition Language – allowed direct access to Web data from e-commerce or business apps And many more!

References XML for Dummies, 2 nd edition (Ed Tittel, Frank Boumphrey) - XPointerhttp:// - XSLThttp:// - XSLhttp:// - XMLhttp://