Download presentation
Presentation is loading. Please wait.
Published byAbel Simpson Modified over 9 years ago
2
Thank you for being part of the 5 th Annual Houston Techfest Please turn off or set all devices to vibrate. Thanks to our Diamond sponsors. Houston Techfest 2011
3
Design patterns using XSL to generate web part user interfaces (DEV300) Paul Galvin BrightStarr (www.brightstarr.com) Welcome to SharePoint Saturday—The Conference
4
Houston Techfest Agenda About Paul and Slalom (brief) What’s the End Goal? Code Review Setup (“Pretend Announcements”) Announcements Collection and individual announcements Web part structure and properties XSL helper class Review actual XSL Demonstrate debug, simple and “fancy” XSL views Demonstrate using XSL from a document library Wrap-up
6
Houston Techfest About Paul Galvin Microsoft MVP since July 2008 Just completed book on SharePoint Designer Workflow “Paul Galvin Workflow” on Amazon.com Working with SharePoint since January 2007(MOSS just came out) Twitter: @pagalvin Email: galvin.paul@gmail.comgalvin.paul@gmail.com Blog: www.mstechblogs.com/paulwww.mstechblogs.com/paul
7
Houston Techfest About Slalom
8
Houston Techfest Slalom is Hiring Pick up some glossies
9
Houston Techfest Concept - XSL XSL is “extensible style sheet” XML goes in … A parser consumes the XML and emits transformed XML. Whatever you want comes out In this case, HTML comes out Other uses: XSL to generate / supplement XML messages Microsoft BizTalk
10
Houston Techfest Demo Setup Visual web part Could be old style web part “Pretend” Announcements Announcements collection of individual announcements The collection and the individual announcements “know” how to generate an XML representation of themselves as strings
11
Houston Techfest The XML SharePoint Saturday India Virtual Event Click here to view the event details.>]] BrightStarr Cookout New Jersey, USA BrightStarr is holding its annual summer cookout. Test Announcement Test location This is a test announcements.
12
Houston Techfest What is that token for?
13
Houston Techfest Web Part Properties XSL File URL As you’ll see, this can be in “layouts”, a document library or any URL to which the user has access at runtime Encode results? If true, results are html-encoded This is useful for debugging
14
Houston Techfest Helper Class Method for pulling XSL files into a string Method to transform XML into HTML using that XSL
15
Houston Techfest Demo Time Let’s do a demo Review the code Run the code Try out different XSL files and links
16
Houston Techfest Summary Use XSL because… It separates the user interface from the c# logic It makes you think about the data first, which is always helpful You can separate roles. Developers to do the hard C# coding Designers and even end users to edit and manage XSL XSL can do more… Embed jQuery Embed advanced CSS Reference nodes, attributes, sort results, define variables
17
Houston Techfest Questions? Paul’s contact information: galvin.paul@gmail.com Twitter: @pagalvin www.mstechblogs.com/paul
18
Houston Techfest Thanks to our sponsors
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.