XML
  Home arrow XML arrow Understanding XSLT transformations: Your O...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
XML

Understanding XSLT transformations: Your Own `XML Transformation Utility`
By: Jagadish Chaterjee
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 5
    2005-12-28

    Table of Contents:
  • Understanding XSLT transformations: Your Own `XML Transformation Utility`
  • Understanding the XML and XSLT
  • “XML transformation utility,” is it really necessary?
  • Developing your own XML transformation utility
  • Understanding the XML transformation utility
  • Testing further with different types of XML

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Understanding XSLT transformations: Your Own `XML Transformation Utility`


    (Page 1 of 6 )

    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.
    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"?>
    <greeting>
                Hello, World!
    </greeting>
    Let us now look at “Sample1.xsl”:
    <?xml version="1.0" encoding="utf-8"?>
     
    <xsl:stylesheet version="1.0"
      xmlns:xsl=http://www.w3.org/1999/XSL/Transform>
        <xsl:output method="html"/>
        <xsl:template match="/">
          <html>
            <body>
              <b>
                <xsl:value-of select="."/>
              </b>
            </body>
          </html>
        </xsl:template>
    </xsl:stylesheet>

    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.

    More XML Articles
    More By Jagadish Chaterjee


       · Hello guys..you can try my simple "XML Transformation Utility" here and give me some...
     

    XML ARTICLES

    - 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
    - Simple Web Syndication with RSS 2.0
    - Java UI Design with an IDE







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek