Templates by BIGtheme NET

XSLT 2.0

XSLT Vs CSS

1) CSS is for doing simple things, combined with power of XSL for doing complex things. 2) CSS is mainly used for rendering HTML, but it can also used for rendering XML directly, by defining the display characteristics of each XML element. 3) CSS has serious limitations, it can not reorder the elements in source document, can not add text ...

Read More »

XSL, XSLT And XPath Basics

1) XSL (Extensible Stylesheet Language) is intended to define the formatting and presentation of XML documents for display on screen. 2) XSL processed the XML document in two stages, first is a structural transformation in which elements are grouped, selected and reordered. And then a formatting process in which the resulting elements are rendered as ink on paper, or pixels on ...

Read More »

XSLT Version 1.0 Vs 2.0

What is new in XSLT 2.0 : Given any XML document, produce a list of the words that appear in its text. Giving the number of times each word appears, together with its’ frequency. frequency.xml <?xml version="1.0" encoding="iso-8859-1"?> <?xml-stylesheet type="text/xsl" href="frequency.xsl"?> <Sample> <TITLE>a a a a a</TITLE> <TITLE>1 1 1 1 1</TITLE> <TITLE>A A A A A</TITLE> <TITLE>! ! ! ...

Read More »

My First XSLT Program running with Saxon-B Processor

Description:  Sample program that helps to understand how XSLT converts XML to HTML page using Saxon-B Processor. Saxon-B Processor, is nothing but a jar file doing the conversion for U. Steps to be followed: 1) Download latest Saxon-B processor jar file from http://saxon.sourceforge.net/ 2) Unzip the folder & copy saxon9ee.jar file to c:saxon 3) hello.xml & hello.xsl files in directory ...

Read More »