Application Development XML - XSL

Similar documents
XSL - Introduction and guided tour

Markup Sprachen und semi-strukturierte Daten

By Nabil ADOUI, member of the 4D Technical Support team

XSLT Mapping in SAP PI 7.1

Data Integration through XML/XSLT. Presenter: Xin Gu

T XML in 2 lessons! %! " #$& $ "#& ) ' */,: -.,0+(. ". "'- (. 1

XML WEB TECHNOLOGIES

XSLT - A Beginner's Glossary

10CS73:Web Programming

IMPLEMENTING AN XML COURSE IN THE COLLEGE OF BUSINESS

Agents and Web Services

Chapter 3: XML Namespaces

Presentation / Interface 1.3

XML- New meta language in e-business

Extending the Linked Data API with RDFa

Introduction to XML Applications

Overview Document Framework Version 1.0 December 12, 2005

Introduction to XSL. Max Froumentin - W3C

XML and Data Management

CSET 3100 Advanced Website Design (3 semester credit hours) IT Required

Dynamic Styling in Web Development

Technology Brief. Upgrading to FileMaker 7: How to benefit from powerful new Web Publishing capabilities

Building A Very Simple Website

INTRO TO XMLSPY (IXS)

Course Information Course Number: IWT 1229 Course Name: Web Development and Design Foundation

Agenda Summary of Previous Session

Terms and Definitions for CMS Administrators, Architects, and Developers

Macromedia Dreamweaver 8 Developer Certification Examination Specification

Von XML nach. Internet-Adressen. Günter Partosch, Oktober 2002

PELLISSIPPI STATE TECHNICAL COMMUNITY COLLEGE MASTER SYLLABUS CIW XML/DHTML/CSS/XHTML WEB 2350

Cloud Computing, Interactive Websites, and Scientific Research/Education

Speech Interface Implementation for XML Browser

XML for RPG Programmers: An Introduction

Web Server Logs Analyze Using the XML Technologies

Call Center Reports Customization Guide

Introduction to Ingeniux Forms Builder. 90 minute Course CMSFB-V6 P

San Joaquin County Office of Education Career & Technical Education Web Design ~ Course Outline CBEDS#: 4601

Lesson Review Answers

Interactive Data Visualization for the Web Scott Murray

IT6503 WEB PROGRAMMING. Unit-I

Extending XSLT with Java and C#

Richmond SupportDesk Web Reports Module For Richmond SupportDesk v6.72. User Guide

Ramon Martí media technology Group (MTG) Barcelona (Spain) Abstract

F O R U M N O K I A. Implementing Trucking Logistics with Nokia Handsets. Version 1.0; July 18, Java /XML

An XML Based Data Exchange Model for Power System Studies

Introducing Oracle BI / XML Publisher

Developers Guide. Designs and Layouts HOW TO IMPLEMENT WEBSITE DESIGNS IN DYNAMICWEB. Version: English

OOML: Structured Approach to Web Development

Whitepapers at Amikelive.com

LAB MANUAL CS (22): Web Technology

JÁN LACKO, EUGEN RUŽICKÝ WEB TECHNOLOGIES AND DESIGN

WWW. World Wide Web Aka The Internet. dr. C. P. J. Koymans. Informatics Institute Universiteit van Amsterdam. November 30, 2007

Microsoft Office SharePoint Designer 2007

Overview of DatadiagramML

Visualization of GML data using XSLT.

INTERNET PROGRAMMING AND DEVELOPMENT AEC LEA.BN Course Descriptions & Outcome Competency

MyCompany Professional Web Developer Certification Examination Specification

XSL Elements. xsl:copy-of

Advantages of XML as a data model for a CRIS

PHP Oracle Web Development Data Processing, Security, Caching, XML, Web Services and AJAX

ART 379 Web Design. HTML, XHTML & CSS: Introduction, 1-2

XML and the College Website A Practical Look at the Use of XML and XSL

Static webpages with Pelican

Stylus Studio 2010 XML Feature Comparison Matrix

HETEROGENEOUS DATABASE INTEGRATION FOR WEB APPLICATIONS

06 XML-based Technologies

1 of 5 2/28/2005 4:24 AM

Mobile Web Design with HTML5, CSS3, JavaScript and JQuery Mobile Training BSP-2256 Length: 5 days Price: $ 2,895.00

Web Services Technologies

An Oracle White Paper May Creating Custom PDF Reports with Oracle Application Express and the APEX Listener

Generating Output. Output Destinations

Skills for Employment Investment Project (SEIP)

Computer Science E-259

Application development in XML

Short notes on webpage programming languages

David RR Webber Chair OASIS CAM TC (Content Assembly Mechanism)

Structure in documents: an introduction

Visualizing ECL Results Technical Preview

WEB DEVELOPMENT COURSE (PHP/ MYSQL)

Formatting JATS. as easy as 1-2-3

Extensible Markup Language (XML): Essentials for Climatologists

A DIAGRAM APPROACH TO AUTOMATIC GENERATION OF JSP/SERVLET WEB APPLICATIONS

How To Use X Query For Data Collection

Basic tutorial for Dreamweaver CS5

Release: 1. ICAWEB414A Design simple web page layouts

Saucon Valley School District Planned Course of Study

Interactive, dynamic Scalable Vector Graphics

Kentico CMS 5 Developer Training Syllabus

NHS Education for Scotland Knowledge Services Design and Development Framework

Oracle BI Publisher 10g Best Practices -- Session # 8633

Web Design Specialist

Last Week. XML (extensible Markup Language) HTML Deficiencies. XML Advantages. Syntax of XML DHTML. Applets. Modifying DOM Event bubbling

WTP-101 Developing Rich Internet Applications with Java Web Frameworks

Study of GML-Based Geographical Data Visualization Strategy

Application Express Web Application Development

Using Database Metadata and its Semantics to Generate Automatic and Dynamic Web Entry Forms

Server side PDF generation based on L A TEX templates

Design and Development of Website Validator using XHTML 1.0 Strict Standard

XML-Based Software Development

XML and Tools. Muhammad Khalid Sohail Khan Mat #: University of Duisburg Essen Germany

Transcription:

ITEC 2336 Internet Application Development XML - XSL

XML A style sheet is linked to an XML document to format the document. XML processor combines style sheet with XML document to display a formatted document. There are two main style sheet languages used with XML: Cascading Style Sheets (CSS) Extensible Style Sheets (XSL)

EXtensible Stylesheet Language (XSL) W3C started to develop XSL because there was a need for an XML-based Stylesheet Language XSL consists of three parts: XSLT - a language for transforming XML documents XPath - a language for navigating in XML documents XSL-FO - a language for formatting XML documents

What is XSLT? extensible Stylesheet Language for Transformations Language for transforming XML documents A programming language for XML documents A functional language, based on value substitution Augmented with pattern matching And also template substitution to construct output (based on namespaces) Uses XML syntax

Some special transforms XML to HTML for old browsers XML to LaTeX for TeX layout XML to SVG graphs graphs, charts, trees XML to tab-delimited for db/stat packages XML to plain-text occasionally useful XML to FO XSL formatting objects

XML Documents as trees of nodes Root Elements Attributes Text Nodes (not characters) Namespaces Processing Instructions Comments

XML Document order Root Elements Text Nodes -- First -- Occur in order of their starts -- As if children (leaves) Attributes, namespaces -- Attached to element, unordered PIs, comments -- Leaves like text nodes

extensible Stylesheet Language Transformation (XSL) The history of XSL The origins of XSL are in Cascading Style Sheets (CSS), where a "stylesheet" is used to add formatting to an HTML file. The syntax to use a stylesheet in XSLT is similar to the syntax in CSS. XSLT is rule-based For example, a stylesheet could declare that when the XSLT transformation engine finds a 'NAME' element it should add markup by calling the 'NAME' template. <xsl:template match="name">... </xsl:template>

XSL MSXML Parser 3.0 is the XML parser shipped with IE 60 6.0 and dwindows XP. According to Microsoft, MSXML Parser 3.0 is 100% compatible with the official W3C XSLT Recommendation. <xsl:stylesheet> or <xsl:transform> is the root element that declares the document to be an XSL style sheet. The root node of a stylesheet housing the templates y g p to be applied to the XML tree. Note: <xsl:stylesheet> and <xsl:transform> are synonymous either can be used!

XSL The correct way to declare an XSL style sheet is: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/xsl/trans form"> or: <xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/xsl/trans l /1999/XSL/T form">

XSL The <xsl:template> element defines the transformation ti or formatting to be applied. The template s match attribute associates a template with an XML element. The match attribute can also be used to define a template for a whole branch of the XML document (i.e. match="/" defines the whole document). The match="/" attribute associates (matches) the template to the root (/) of the XML source document. Match parameters indicate the path to the element in the XML tree. The <xsl:value-of> element inserts the string value of a named node.

XSL The XSL <xsl:for-each> element sets up a loop to iterate through several nodes. Output from an XML file can filtered by adding a criterion i to the select attribute t in the <xsl:for-each> element. For example: <xsl:for-each select="catalog/cd[artist='bob Dylan']"> Legal filter operators are: = (equal)!= (not equal) < less than > greater than

XSL To output the XML file as an XHTML file, and sort it at the same time, simply add a sort element inside the for-each element in your XSL file: The select attribute t indicates what XML element to sort on. The <xsl:if> element contains a template that will be applied only if a specified condition is true. To insert a conditional choose test against the content t of the XML file, simply add the <xsl:choose>, <xsl:when>, and <xsl:otherwise> elements to your XSL document.

XSL Example: <?xml version="1.0" encoding="iso-8859-1"?> <?xml-stylesheet type="text/xsl" text/xsl href="cdcatalog.xsl"?>

ITEC 2336 Internet Application Development XML - XSL