Home arrow XML arrow Understanding XSLT transformations: Your Own `XML Transformation Utility`

Understanding XSLT transformations: Your Own `XML Transformation Utility`

This article mainly concentrates on the basics of transforming XML documents, along with developing your own utility to transform XML to XSLT using Visual Studio 2005.

Author Info:
By: Jagadish Chaterjee
Rating: 5 stars5 stars5 stars5 stars5 stars / 7
December 28, 2005
  1. · Understanding XSLT transformations: Your Own `XML Transformation Utility`
  2. · Understanding the XML and XSLT
  3. · “XML transformation utility,” is it really necessary?
  4. · Developing your own XML transformation utility
  5. · Understanding the XML transformation utility
  6. · Testing further with different types of XML

print this article

Understanding XSLT transformations: Your Own `XML Transformation Utility`
(Page 1 of 6 )

There are two downloadable files available for this article. You can find them here and here.

 The obligatory “Hello World” example

I already introduced XML and other related technologies at the following links.

If you are new to XML or XSL, I strongly suggest you go through the theory available at the above links. In this section I start immediately with the “Hello World” example.

The “Hello World” example mainly contains two files.  The first would be an XML file (Sample1.xml) and the second would be an XSL file (Sample1.xsl).  Let us go through the “Sample1.xml” first.

<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="Sample1.xsl"?>
            Hello, World!
Let us now look at “Sample1.xsl”:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
    <xsl:output method="html"/>
    <xsl:template match="/">
            <xsl:value-of select="."/>

To execute our example, just open “sample1.xml” in Internet Explorer (version 5.5 or above) and it should give you “Hello World” in bold characters.  The next section explains the above two files in detail.

blog comments powered by Disqus

- Open XML Finally Supported by MS Office
- XML Features Added to Two Systems
- Using Regions with XSL Formatting Objects
- Using XSL Formatting Objects
- More Schematron Features
- Schematron Patterns and Validation
- Using Schematron
- Datatypes and More in RELAX NG
- Providing Options in RELAX NG
- An Introduction to RELAX NG
- Path, Predicates, and XQuery
- Using Predicates with XQuery
- Navigating Input Documents Using Paths
- XML Basics
- Introduction to XPath

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


© 2003-2019 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials