.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Articles >> XML >> Post New Resource Bookmark and Share   

 Subscribe to Articles

XSLT (Extensible StyleSheet Language Transformations)

Posted By:Lakhan Pal Garg       Posted Date: September 12, 2009    Points: 25    Category: XML    URL: http://www.dotnetspark.com  
 

XSL stands for Extensible StyleSheet Language, and is a style sheet language for XML documents. XSLT stands for XSL Transformations. XSL = Style Sheets for XML.XSL consists of three parts:
  • XSLT - a language for transforming XML documents
  • XPath - a language for navigating in XML documents
  • XSL-FO - a language for formatting XML documents
XSLT is a language for transforming XML documents into XHTML documents or to other XML documents. XPath is a language for navigating in XML documents.

Example:
Implement Style on xml data:
*********************** Sample: Sample1.xml ************************




lakhangarg@gmail.com
Lakhan Pal Garg
http://www.lakhangarg.blogspot.com



********************* XSLT Sample: Sample1.xslt ************************





Author:

Email ID:

Blog:




******************************************************************************

Code to implement stylesheet on xml document:
XmlDocument docXML = new XmlDocument();
XslTransform docXSL = new XslTransform();
docXML.Load(Server.MapPath("sample1.xml"));
docXSL.Load(Server.MapPath("sample1.xslt"));
Xml1.Document = docXML;
Xml1.Transform = docXSL;
******************************************************************************

Output:
Author: Lakhan Pal Garg
Email ID:lakhangarg@gmail.com
Blog:http://www.lakhangarg.blogspot.com
 Subscribe to Articles

     

Further Readings:

Responses
Author: spammhatter         Company URL: http://www.dotnetspark.com
Posted Date: October 14, 2010

This was helpful, though I had to read it several times before I understood all the technobabble. Thanks for making this page!
http://www.ecrion.com


Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend