0% found this document useful (0 votes)
38 views1 page

Figure 4 2

This document discusses using XSLT and XSL-FO to transform data into different formats like HTML, PDF, and web services. It explains that raw data can be extracted from a source and transformed into an XML structure using XSLT. From there, additional XSLT transformations can output the data into various formats depending on the destination, such as HTML, PDF, or a SOAP packet for a web service. The basics of XSL-FO are then introduced for formatting XML data into a paginated PDF document.

Uploaded by

Wisznia
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views1 page

Figure 4 2

This document discusses using XSLT and XSL-FO to transform data into different formats like HTML, PDF, and web services. It explains that raw data can be extracted from a source and transformed into an XML structure using XSLT. From there, additional XSLT transformations can output the data into various formats depending on the destination, such as HTML, PDF, or a SOAP packet for a web service. The basics of XSL-FO are then introduced for formatting XML data into a paginated PDF document.

Uploaded by

Wisznia
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Chapter 4: XSL-FO

Data Store

RawData

XSLT

XML Structure

HTML Destination Web Service


Format

PDF

WebService
HTML XSL PDF XSL
XSL

Web Service
HTML Page PDF Document
Consumer

Figure 4-2

In the preceding example, the application extracts data from a data source such as a database, text file or
another XML data source. The XSLT transforms the source to a defined XML tree structure in prepara-
tion for applying further transformations to the data. Depending on the desired destination, you can
apply a stylesheet to the data to produce the appropriate output.

In the previous example, the application applies XSLT to the source, selecting appropriate data to be out-
put within HTML tags. An XSL-FO stylesheet is applied to the source defining the pagination and for-
mat of the data to be output in Adobe PDF format. The final transformation performs an XML-to-XML
transform to produce a SOAP packet.

You work through an example like this later in the chapter. First, however, you go through the basics of
XSL-FO.

XSL-FO Over view


The namespace for XSL-FO is http://www.w3.org/1999/XSL/Format. The example that follows
shows how the xsl-fo namespace is generally introduced using the alias “fo”.

<?xml version=”1.0”?>
<fo:root xmlns:fo=”http://www.w3.org/1999/XSL/Format”>

103

You might also like