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

Using XSLT with Custom Web Parts PowerPoint PPT Presentation


  • 126 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 rick wise@rjbtech com

Rick Wise

RJB Technical Consulting

www.rjbtech.com

[email protected]

Using XSLT with Custom Web Parts


Agenda

Agenda

  • What is XSLT?

  • XSLT within SharePoint

    • Where is it stored?

    • How it is used?

  • Customizing Web Parts


What is xslt

What is XSLT?

  • eXtensibleStylesheet Language Transformations

  • Used to format XML


What is xslt1

What is XSLT?

  • Example - XML


What is xslt2

What is XSLT?

  • Example - XSL


What is xslt3

What is XSLT?

  • Output


What is xslt4

What is XSLT?

  • Processing

XML

XSL

Processor

HTML


What is xslt5

What is XSLT?

  • Common Tags

    <xsl:stylesheet name=“stylesheetName”>

    <xsl:template match=“/”>

    <xsl:value-of [email protected]>


Helpful code

Helpful Code


Helpful code1

Helpful Code


Helpful code2

Helpful Code

  • Output


Using variables

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

Where is it stored?

  • ItemStyle.xsl

    • Style Library/XSL Style Sheets/ItemStyle.xsl

  • Webpart file

    • .webpart


Xslt within sharepoint

XSLT within SharePoint

  • Call Template

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

  • Call a nested template

    • Looping through items

    • Keeps HTML output cleaner


Xslt within sharepoint1

XSLT within SharePoint

  • Mimmick OOB Web parts

  • SharePoint Designer

    • Convert to XSL Data View


Xslt within sharepoint2

XSLT within SharePoint


Xslt within sharepoint3

XSLT within SharePoint

  • Deployment

    • ItemStyle.xsl

      • XSL Styles Sheets

    • Individual Web Parts

      • Web Part Gallery - Miscellaneous


Using xslt with custom web parts

Demo


  • Login