Tuesday, January 4, 2011

XSLT - Transformation example

In my previous I have briefed about XSLT. Now let’s walk through how XSLT transformation is being done.
Let’s consider the following XML document. Here I have created a Company.XML as follows



Now we need to create an XSL style sheet as follows Company.xsl



Now we need to link the XSL style sheet with the XML document as follows.



If we have an XSL compliant browser, we can nicely transform XML document into XHTML. So here we have the output as follows

No comments:

Post a Comment

Installing ASP.NET MVC

Installing ASP.NET MVC Before we dive deep into the ASP.NET MVC, let’s install it our development machine. This is very straight forwa...