Post on 09-Jun-2015
description
transcript
Prepared by:
Osama Mourad
XSLT in SharePoint
March 27, 2010
About me
Osama Mourad• Currently a Development Manager at LINKdotNET Saudi Arabia• Managed a group of projects in Egypt, Saudi Arabia and Emirates • MCP ASP.NET and MCTS MOSS 2007 Configuration
http://omourad.blogspot.com http://twitter.com/omourad
Agenda
• What is XSLT?• How to transform the XML?• Dependent/Independent Schemas• XSLT in SharePoint• XSLT ListView webpart• Questions
What is XSL?
• Is a StyleSheet language for XML• XSL consists of three parts:
1. XSLT - a language for transforming XML documents2. XPath - a language for navigating in XML documents3. XSL-FO - a language for formatting XML documents
CSS and XSL
• CSS is for HTML• XSL is for XML• In HTML, <TABLE> is for table as rows and
columns, but in XML <TABLE> can be a lot of things in the same document, it can be a piece of furniture
What is XSLT?
• XSLT stands for XSL Transformations• XSLT transforms an XML document into
another XML document• XSLT uses XPath to navigate in XML documents
Demo
CSS and XSLT
How to transform the XML?
• Client side (Browser)• Client side (JavaScript)• Server side (C#)• XSL Extentions
Demo
Transforming XML
Dependent/Independent Schemas
• Dependent Schema• Independent Schema
XSLT In SharePoint
• Content Query webpart• Table of Contents webpart• Summary Links webpart• List View webpart• Data Form webpart
XSLT ListView webpart
Demo
XSLT ListView webpart
Refrences
• http://www.w3.org/TR/XSLT• http://www.w3schools.com/xsl/ • http://www.w3schools.com/xpath/• http://
blogs.msdn.com/sharepoint/archive/2010/02/25/sharepoint-2010-list-view-blog-series-part-3-list-view-architecture.aspx
Questions
Thank You!
http://omourad.blogspot.com http://twitter.com/omourad