0% found this document useful (0 votes)
395 views7 pages

XSL in Bi Publisher

XSL is a language for expressing style sheets to describe how to display XML documents. It includes XSLT, which allows transforming XML documents into other formats like HTML. XSL style sheets use formatting objects and attributes to define advanced styling. Applying a style sheet to an XML source file produces transformed output like HTML. Key elements in XSL include templates, which contain rules for matching elements, and the output element defining the format of the transformed output document.

Uploaded by

rktadi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
395 views7 pages

XSL in Bi Publisher

XSL is a language for expressing style sheets to describe how to display XML documents. It includes XSLT, which allows transforming XML documents into other formats like HTML. XSL style sheets use formatting objects and attributes to define advanced styling. Applying a style sheet to an XML source file produces transformed output like HTML. Key elements in XSL include templates, which contain rules for matching elements, and the output element defining the format of the transformed output document.

Uploaded by

rktadi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 7

What is XSL?

XSL is a language for expressing style sheets. An XSL style sheet is, like

with CSS, a file that describes how to display an XML document of a


given type. XSL shares the functionality and is compatible with CSS2
(although it uses a different syntax).
It also adds:
A transformation language for XML documents: XSLT. Originally
intended to perform complex styling operations, like the generation of
tables of contents and indexes, it is now used as a general purpose XML
processing language. XSLT is thus widely used for purposes other than
XSL, like generating HTML web pages from XML data.
Advanced styling features, expressed by an XML document type which
defines a set of elements called Formatting Objects, and attributes (in
part borrowed from CSS2 properties and adding more complex ones.

How Does It Work?


Styling requires a source XML
documents, containing the

information that the style sheet will


display and the style sheet itself
which describes how to display a
document of a given type.

Sample XML For XSL


<?xml version="1.0" encoding="UTF-8" ?>

Standard XML Tag


<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
Stylesheet Version
<xsl:output omit-xml-declaration="yes" />
<xsl:output method="xml" />
The <xsl:output> element defines the format of the output document.
<xsl:key name="contacts-by-LogicalGroupReference"

match="OutboundPayment"
use="PaymentNumber/LogicalGroupReference" />
The <xsl:key> element is a top-level element which declares a named key
that can be used in the style sheet with the key() function.

Sample XML For XSL


<xsl:template match="OutboundPaymentInstruction">

The <xsl:template> element contains rules to apply when a specified node


is matched.
The match attribute is used to associate the 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).
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.02"
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance>
schemaLocation can be given as an attribute in an XML document's root
element. The attribute consists of a pair of values: The first value of each
pair is the namespace for which the second value gives the name or
location of the corresponding schema. The second part is optional.
ISO 20022 files usually contain only one of these namespace-schema
pairs. For some banks this attribute is mandatory.

Sample Output File of XML after applying XSL

You might also like