SIGN UP MEMBER LOGIN:    
ARTICLE

XML to HTML Converter Using XSLT

Posted by Vasanth Articles | XML in C# March 23, 2010
In this article we see XML to HTML Converter using XSLT.
Reader Level:

Introduction

A transformation in the XSLT language is expressed as a well-formed XML document conforming to the Namespaces in XML Recommendation. XSLT-defined elements are distinguished by belonging to a specific XML namespace.

Important

The conventions used for the names of XSLT elements, attributes and functions are that names are all lower-case, use hyphens to separate words, and use abbreviations only if they already appear in the syntax of a related language such as XML or HTML


The 1999 in the URI indicates the year in which the URI was allocated by the W3C. It does not indicate the version of XSLT being used and specified in attributes.

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
</xsl:template>
</xsl:stylesheet>

Process:
  1. Input file as "XMLDataset.xml"
  2. Output file as "output.htm" file ( generate manual)
  3. Click " Show XSLT Output"
  4. Open "output.htm" and view the output.
XSLT_Propertise.gif

Conclusion:

Here we mean that XSLT is a very powerful language and faster deployment in the server.


Attachments refers : 
  • XSLTConverter.xsl - its a converter from xml to html.
  • XMLDataset.xml - fetch the input from this file.
  • Output.htm - Bind the final output as html format.

Login to add your contents and source code to this article
share this article :
post comment
 

Thank u...

Posted by Pritesh Patel Nov 18, 2010
Become a Sponsor
PREMIUM SPONSORS
  • Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
    Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites - Click Here!
Become a Sponsor