Monday, February 2, 2015

XSLT in SharePoint

XSLT stands for Extensible style sheet transformations. It is basically used to convert XML document into HTML output file. It can be used to present xml data in many different ways.
In SharePoint it is used as part of
  • XML Viewer Web Part
  • XSLT list view web part
  • Content query web part XSLT
  • Search results can be formatted using XSLT
These topic covers example of XML viewer web part in SharePoint 2013 Online. We will be using two files, one is xml file which contains xml data and other is xslt file which basically reads each node and transforms the data to html page. I had taken xml file from this link.
SharePoint Out of the box has list view webpart so we will be using this webpart and it bascially asks for two sources xml and xslt files. I had prepared xslt using the xml file and below is the code snippet for xslt. Once these files are configured properly we should be able to see the XMlL viewer webpart.


No comments:

Post a Comment