MC 365 – Software Engineering Presented by: John Ristuccia Shawn Posts Ndi Sampson XSLT Introduction BCi.

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

Inside an XSLT Processor Michael Kay, ICL 19 May 2000.
CG0119 Web Database Systems Parsing XML: using SimpleXML & XSLT.
UFCE8V-20-3 Information Systems Development 3 (SHAPE HK) Lecture 12 Extensible Stylesheet Language Transformations : XSLT.
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.
XSLT (eXtensible Stylesheet Language Transformation) 1.
Introduction to XSLT. What is XML? Design Goals of XML XML Format XML Declaration ElementsAttributes.
CSE 190: Internet E-Commerce Lecture 17: XML, XSL.
Rendering XML documents with XSL The most powerful approaches to rendering XML documents involve using XSL (eXtensible Stylesheet Language) XSL enables.
XSL Transformations (XSLT) Meghasyam Bokam April’1 st, 2002.
XML Language Family Detailed Examples Most information contained in these slide comes from: These slides are intended.
XML Technologies and Applications Rajshekhar Sunderraman Department of Computer Science Georgia State University Atlanta, GA 30302
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)
SD2520 Databases using XML and JQuery
XSLT XSLT: eXtensible Stylesheet Language for Transformations - a language for transforming XML documents into any text- based format (e.g. HTML, plain.
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.
XSLT 1. C ONTENTS XSLT and uses XSLT example Simple XML How XSLT works? Template-match Value-of For-each and sort If Choose-when Apply-templates Where.
Sheet 1XML Technology in E-Commerce 2001Lecture 6 XML Technology in E-Commerce Lecture 6 XPointer, XSLT.
CSE3201/CSE4500 XPath. 2 XPath A locator for elements or attributes in an XML document. XPath expression gives direction.
XML for E-commerce III Helena Ahonen-Myka. In this part... n Transforming XML n Traversing XML n Web publishing frameworks.
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.
XML and its applications: 4. Processing XML using PHP.
CSE3201/CSE4500 Information Retrieval Systems
XSLT and XPath, by Dr. Khalil1 XSL, XSLT and XPath Dr. Awad Khalil Computer Science Department AUC.
Representing Web Data: XML CSI 3140 WWW Structures, Techniques and Standards.
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.
1 CIS336 Website design, implementation and management (also Semester 2 of CIS219, CIS221 and IT226) Lecture 6 XSLT (Based on Møller and Schwartzbach,
Transforming XML Part II XML Document Transformation with XSLT John Arnett, MSc Standards Modeller Information and Statistics Division NHSScotland Tel:
Representing Web Data: XML CSI 3140 WWW Structures, Techniques and Standards.
XML About XML Things to be known Related Technologies XML DOC Structure Exploring XML.
Lecture 14 Extensible Stylesheet Language Transformations : XSLT.
CSE3201/CSE4500 Information Retrieval Systems XSLT – Part 2.
1 XSLT An Introduction. 2 XSLT XSLT (extensible Stylesheet Language:Transformations) is a language primarily designed for transforming the structure of.
CITA 330 Section 6 XSLT. Transforming XML Documents to XHTML Documents XSLT is an XML dialect which is declared under namespace "
XSLT part of XSL (Extensible Stylesheet Language) –includes also XPath and XSL Formatting Objects used to transform an XML document into: –another XML.
XSLT Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
Transforming Documents „a how-to of transforming xml documents“ Lecture on Walter Kriha.
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)
XSLT Introduction. XSLT is the transformation part of XSL An XSLT file contains rules which are applied against and XML file to produce an output Outputs.
1 Introduction  Extensible Markup Language (XML) –Uses tags to describe the structure of a document –Simplifies the process of sharing information –Extensible.
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.
 2002 Prentice Hall, Inc. All rights reserved. 1 Chapter 12 – XSL: Extensible Stylesheet Language Transformations (XSLT) Outline 12.1Introduction 12.2Setup.
Jennifer Widom XML Data Introduction, Well-formed XML.
XSLT. XSLT stands for Extensible Stylesheet Language Transformations XSLT is used to transform XML documents into other kinds of documents. XSLT can produce.
Unit 3 — Advanced Internet Technologies Lesson 11 — Introduction to XSL.
XPath. XPath, the XML Path Language, is a query language for selecting nodes from an XML document. The XPath language is based on a tree representation.
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.
CSE3201/CSE4500 Information Retrieval Systems XSLT – Part 2.
University of Nottingham School of Computer Science & Information Technology Introduction to XML 2. XSLT Tim Brailsford.
Martin Kruliš by Martin Kruliš (v1.1)1.
XSLT: How Do We Use It? Nancy Hallberg Nikki Massaro Kauffman.
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
XML Extensible Markup Language
XML Schema – XSLT Week 8 Web site:
1 XSL Transformations (XSLT). 2 XSLT XSLT is a language for transforming XML documents into XHTML documents or to other XML documents. XSLT uses XPath.
XSLT, XML Schema, and XPath Matt McClelland. Introduction XML Schema ▫Defines the content and structure of XML data. XSLT ▫Used to transform XML documents.
CH 15 XSL Transformations 1. Objective What is XSL? Overview of XSL transformations Understanding XSL templates Computing the value of a node with xsl:value-of.
1 XSLT XSLT (extensible stylesheet language – transforms ) is another language to process XML documents. Originally intended as a presentation language:
Unit 4 Representing Web Data: XML
XML in Web Technologies
XSLT 1.0.
XML Data Introduction, Well-formed XML.
More Sample XML By Sadia Anjum.
CS 431 – February 28, 2005 Carl Lagoze – Cornell University
More XML XML schema, XPATH, XSLT
Presentation transcript:

MC 365 – Software Engineering Presented by: John Ristuccia Shawn Posts Ndi Sampson XSLT Introduction BCi

Background Title: EE and DC What is XSLT? XSLT stands for Extensible Stylesheet Language Transformations XSLT is designed for use as part of XSL, which is a stylesheet language for XML. What is XML and why does it need XSL Extensible Markup Language is a set of semantic rules designed to break up a document into hierarchical and easily identifiable parts. XML Has three important features… What can BCi Do?What can BCi Do?

Background Continued Title: EE and DC XML is a meta-markup language Instead of having a specified set of tags to draw from, you define your own as you need them; allowing for immense versatility and Domain-specific markup languages. XML Follows a Strict hierarchical structure. Every well-formed XML document is a tree; having a root, children, and leaves. Nodes can be elements, text, attributes, comments, processing instructions, or namespaces. XML contains only structural and semantic info XML documents contain no formatting information – hence XSL/XSLT. What can BCi Do?What can BCi Do?

Background Continued Title: EE and DC To Reiterate XSL (Extensible Stylesheet Language) provides a language for adding formatting and structure to an XML document. The process of XSL Transformation basically takes in one XML document and transforms it into a different XML document (usually but not always a well-formed HTML document viewable by a web browser) What can BCi Do?What can BCi Do?

Advantages and Disadvantages Title: EE and DC Advantages Easy to merge data into XML data into a presentation More resilient to change in the details of the XML document than in the low-level DOM (Document Object Model) and SAX (Simple API for XML) Database inquiries can be returned in XML Insensitive to column order Disadvantages Memory intensive and suffers a performance penalty Difficult to implement complicated business rules Have to learn a new language Can’t change the value of variables (requires recursion) What can BCi Do?What can BCi Do?

XSL Transformations Title: EE and DC Use X-Path to identify (select) parts of an XML document XSLT Templates to apply transformations Requires Well formed XML document XSL document (stylesheet) that contains formatting and transformation templates XSLT parser to perform the transformations What can BCi Do?What can BCi Do?

Steps for Translating a Document Title: EE and DC 1.Tell a system which parser to use 2.Establish a factory in which to create transformations 3.Create a transformer for a particular style sheet 4.Invoke the transformer to process the document What can BCi Do?What can BCi Do?

Title: EE and DC Who can use BCi?Who can use BCi? XSLT Example <- XML <- XSL XSLT -> Another example

XSLT Stylesheet Elements Title: EE and DC Matching and Selecting Templates xsl:template xsl:apply-template xsl:value-of Branching Elements xsl:for-each xsl:if xsl:choose What can BCi Do?What can BCi Do?

Example of xsl:if Title: EE and DC xsl:if test = “expression” Evaluate the expression to a boolean and if true, applies the template body XSLT has not else if construct (use choose) What can BCi Do?What can BCi Do?

Title: EE and DC Copying: xsl:copy, copies the current node xsl:apply-templates, processes the children of the current node ex. xsl:copy-of element, can copy the entire subtree of each node that the template selects ex. Requirements?Requirements? Some Simple XSLT

Some More Simple XSLT Potential Problems?Potential Problems? Deleting: While a match value of "project" would delete all the project elements from the output, the match value shown will only delete project elements whose status attributes have the string "canceled" as their value.

Some More Simple XSLT Changing Element Names: ex. This template rule tells an XSLT processor to take any “article” element fed to it as input, and output its contents surrounded by html tags