CIS 375—Web App Dev II XSLFO. 2 XSLFO IntroductionIntroduction XSLFO stands for Extensible Stylesheet Language ___________________. XSLFO is an _____-based.

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

CG0119 Web Database Systems Parsing XML: using SimpleXML & XSLT.
1 XSL FO Extensible Stylesheet Language Formatting Objects An advanced style language for XML documents: An advanced style language for XML documents:
Technology Reviews :XSL Park, Ho-gun. What is XSL Extensible Style sheet LanguageExtensible Style sheet Language An XML-based language used to.
1 XSLT – eXtensible Stylesheet Language Transformations Modified Slides from Dr. Sagiv.
1/18 ITApplications XML Module Session 5: Extensible Stylesheet Language (XSL)
9-May-15 More CSS. 2 A different emphasis CSS is the same for XML as it is for HTML and XHTML, but-- XML contains no display information If you want your.
SDPL 2002Notes 6: XSL1 6 XSL: Extensible Stylesheet Language n An advanced style language for XML documents: 1. Language for transforming XML documents:
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.
Extensible Stylesheet Language (XSL) By Example Tony Wat 9 October 2002.
Rendering XML documents with XSL The most powerful approaches to rendering XML documents involve using XSL (eXtensible Stylesheet Language) XSL enables.
1 XSL: Formatting Objects (FO) XSL-FO is about formatting XML data for output.
1 XSL: Formatting Objects (FO) XSL-FO is about formatting XML data for output.
XSL Concepts Lecture 7. XML Display Options What can XSL Transformations do? generation of constant text suppression of content moving text (e.g., exchanging.
Introduction to XSL Hudson Ummem Veloso (huv) Luciano de Moura Silva (lms4)
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)
Week 0534Styling XML1 Topics CSS – styling XML for screen presentation –Associating CSS with XML –Selectors –Element positioning –Element appearance XSL.
CSS (Cascading Style Sheets): How the web is styled Create Rules that specify how the content of an HTML Element should appear. CSS controls how your web.
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.
XP Tutorial 7New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks.
XML Anisha K J Jerrin Thomas. Outline  Introduction  Structure of an XML Page  Well-formed & Valid XML Documents  DTD – Elements, Attributes, Entities.
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 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.
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
Another PillowTalk Presentation  2004 Dynamic Systems, Inc. Introduction to XML for SOA Lee H. Burstein,
1 Dr Alexiei Dingli XML Technologies X-Languages.
An Introduction to XML Presented by Scott Nemec at the UniForum Chicago meeting on 7/25/2006.
Session II Chapter 2 – Chapter 2 – XSLhttp://
CS 299 – Web Programming and Design Introduction to HTML.
XSL Formatting Objects „From XML to PDF“ Lecture on Walter Kriha.
CP2022 Multimedia Internet Communication1 HTML and Hypertext The workings of the web Lecture 7.
Sheet 1XML Technology in E-Commerce 2001Lecture 7 XML Technology in E-Commerce Lecture 7 XSL Formatting Objects, Java Data Binding.
1 CIS336 Website design, implementation and management (also Semester 2 of CIS219, CIS221 and IT226) Lecture 6 XSLT (Based on Møller and Schwartzbach,
XHTML,XML M.Abdullah Mrian. What is the XHTML Why XHTML ?
 XML is designed to describe data and to focus on what data is. HTML is designed to display data and to focus on how data looks.  XML is created to structure,
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 "
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)
XML eXtensible Markup Language. Topics  What is XML  An XML example  Why is XML important  XML introduction  XML applications  XML support CSEB.
Waqas Anwar Next SlidePrevious Slide. Waqas Anwar Next SlidePrevious Slide XML XML stands for EXtensible Markup Language.
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.
XML Basics A brief introduction to XML in general 1XML Basics.
CHAPTER 15 WPF Windows Presentation Foundation Dr. John Abraham Professor, UTPA.
XP Review 2 New Perspectives on JavaScript, Comprehensive1 Introducing Cascading Style Sheets Formatting Web Pages with CSS.
SDPL 20076: XSL Formatting1 6 XSL: Extensible Stylesheet Language n An advanced style language for XML documents: 1. Language for transforming XML documents:
Unit 3 — Advanced Internet Technologies Lesson 11 — Introduction to XSL.
 XSL – Extensible Style Sheet Language  XSLT – XSL Transformations › Used to transform XML documents to other formats,like HTML or other XML documents.
SDPL 2004Notes 6: XSL Formatting1 6 XSL: Extensible Stylesheet Language n An advanced style language for XML documents: 1. Language for transforming XML.
SDPL 2001Notes 6: XSL1 6 XSL: Extensible Stylesheet Language n An advanced style language for XML documents: 1. Language for transforming XML documents:
C Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Introduction to XML Standards.
CIS 228 The Internet 9/20/11 XHTML 1.0. “Quirks” Mode Today, all browsers support standards Compliant pages are displayed similarly There are multiple.
1 Extensible Stylesheet Language (XSL) Extensible Stylesheet Language (XSL)
XML Schema – XSLT Week 8 Web site:
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)
CSS Introductions. Objectives To take control of the appearance of a Web site by creating style sheets. To use a style sheet to give all the pages of.
1 XSLT XSLT (extensible stylesheet language – transforms ) is another language to process XML documents. Originally intended as a presentation language:
ACG 4401 XSLT Extensible Stylesheet Language for Transformations
How to Get Your Pages to Publish to PDF
Unit 6 - XML Transformations
Presentation transcript:

CIS 375—Web App Dev II XSLFO

2 XSLFO IntroductionIntroduction XSLFO stands for Extensible Stylesheet Language ___________________. XSLFO is an _____-based markup language. XSLFO is a W3C Recommendation and is now formally named _____. “XSL” consists of three parts: XSLT (a language for transforming XML documents) XSL (a vocabulary for formatting XML documents) XPath (a language for defining parts of an XML document) This may sound a little confusing, but sometimes life IS a little confusing.

3 XSLFO DocumentsDocuments XSLFO documents are stored in files with a *.fo or a *.____ extension. They can also have the *.____ extension, because this makes them more accessible to XML editors. XSLFO documents start with an XML ___________: The element contains the XSLFO document and declares a namespace. To make XML elements unique, “fo” is given an XML namespace, such as

4 XSLFO Document Structure

5 XSLFO AreasAreas The XSL formatting model defines a number of ___________ areas to display output. One such area is called a _______. Each XSL-FO Page contains a number of _______: region-body, region-before (header), region-after (footer), region-start (left sidebar), and region-end. XSLFO Regions contain _______ areas. XSLFO Block areas most often contain _____ areas. XSLFO Line areas contain _______ areas. XSLFO Inline areas define _____ inside Lines (bullets, single character, graphics, and more).

6 Simple XSLFO Document "Blocks" of content “______" into "Pages" and then to the output media. Hello, world!

7 hello.fo in an XSL Formatter (see

8 XSLFO Flow XSLT-FO pages are filled with ________ from the element. The element contains all the elements to be printed to the page. When the page is full, the same page _______ will be used until all the text is printed. The element has a "flow-name" _______. xsl-region-body (into the region-body) xsl-region-before (into the region-before) xsl-region-after (into the region-after) xsl-region-start (into the region-start) xsl-region-end (into the region-end)

9 XSLFO Pages XSLFO uses page templates called "Page ________" to define the layout of pages. The following illustrates page masters for odd and even page numbers:

10 Example Page Master <fo:simple-page-master master-name="A4" page-width= "297mm" page-height= "210mm" margin-top= "1cm" margin-bottom="1cm" margin-left="1cm" margin-right= "1cm"> Example Page Master

11

12 XSLFO Blocks XSL-FO output is normally nested inside elements, nested inside elements, nested inside elements. Blocks can have many formatting attributes such as, margin, border-width, border-color, padding, background-color, font-family, etc.

13 Example of XSLFO Blocks This code would be placed within the ______ element: <fo:block font-size="14pt" font-family="verdana" color="red" space-before="5mm" space-after="5mm“ padding="2mm"> W3Schools <fo:block text-indent="5mm" font-family="verdana" font-size="12pt" space-before="5mm" space-after="5mm"> At W3Schools you will find all the Web-building tutorials you need, from basic HTML and XHTML to advanced XML, XSL, Multimedia and WAP.

14 Example from Previous Slide

15 XSLFO List Blocks The following code creates a bulleted list: • Volvo • Saab

16 Example from previous slide:

17 XSLFO Tables The hierarchy of XSLFO table elements (each element contains the listed sub-elements). (optional)

18 XSLFO Table Example Car Price Volvo $50000 SAAB $48000

19 Output from Table Example

20 Generate XSLFO from XML (1) XML document: W3Schools At W3Schools you will find all the Web-building tutorials you need, from basic HTML and XHTML to advanced XML, XSL, Multimedia and WAP.

21 Generate XSLFO from XML (2) XSL document : <xsl:stylesheet version="1.0" xmlns:xsl=" XSL/Transform" xmlns:fo=" XSL/Format"> <fo:simple-page-master master-name="simple" page-width="150mm" page-height="200mm"> <fo:block font-size="14pt" font-family ="verdana" color="red" space-before="5mm" space- after="5mm"> <fo:block font-size="10pt" font-family ="verdana" space-before="5mm" space-after ="5mm">

22 XSLFO from XML Output

23 PDF Output

XSLFO Table w/ XSLT (cd_xslfo.xsl) xmlns:xsl=" xmlns:fo=" <fo:simple-page-master master-name="my-page" page-width="150mm" page-height="200mm"> <fo:block font-size="10pt" font-family ="verdana" color="red" space-before="5mm" space-after="5mm">

25 Output from cd_xslfo.xsl

26 XSLFO Software Special software is required to format XSL documents. This software can produce output as _____