Rick wise rjb technical consulting www rjbtech com rick wise@rjbtech com
Sponsored Links
This presentation is the property of its rightful owner.
1 / 18

Using XSLT with Custom Web Parts PowerPoint PPT Presentation


  • 133 Views
  • Uploaded on
  • Presentation posted in: General

Rick Wise RJB Technical Consulting www.rjbtech.com [email protected] Using XSLT with Custom Web Parts. Agenda. What is XSLT? XSLT within SharePoint Where is it stored? How it is used? Customizing Web Parts. What is XSLT?. eXtensible Stylesheet Language Transformations

Download Presentation

Using XSLT with Custom Web Parts

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Rick Wise

RJB Technical Consulting

www.rjbtech.com

[email protected]

Using XSLT with Custom Web Parts


Agenda

  • What is XSLT?

  • XSLT within SharePoint

    • Where is it stored?

    • How it is used?

  • Customizing Web Parts


What is XSLT?

  • eXtensibleStylesheet Language Transformations

  • Used to format XML


What is XSLT?

  • Example - XML


What is XSLT?

  • Example - XSL


What is XSLT?

  • Output


What is XSLT?

  • Processing

XML

XSL

Processor

HTML


What is XSLT?

  • Common Tags

    <xsl:stylesheet name=“stylesheetName”>

    <xsl:template match=“/”>

    <xsl:value-of [email protected]>


Helpful Code


Helpful Code


Helpful Code

  • Output


Using Variables

  • <xsl:variable name = “name”>

    <xsl:value-of select = [email protected]/>

    </variable>

  • Refer to as:

    • <xsl:value-of select=“$name”>

    • {$name}


Where is it stored?

  • ItemStyle.xsl

    • Style Library/XSL Style Sheets/ItemStyle.xsl

  • Webpart file

    • .webpart


XSLT within SharePoint

  • Call Template

    <xsl:call-template name=“template2”>

  • Call a nested template

    • Looping through items

    • Keeps HTML output cleaner


XSLT within SharePoint

  • Mimmick OOB Web parts

  • SharePoint Designer

    • Convert to XSL Data View


XSLT within SharePoint


XSLT within SharePoint

  • Deployment

    • ItemStyle.xsl

      • XSL Styles Sheets

    • Individual Web Parts

      • Web Part Gallery - Miscellaneous


Demo


  • Login