Quantcast
Channel: Marc D Anderson's Blog» XSL
Browsing all 52 articles
Browse latest View live

XSL Alternative to Eliminating Duplicates Using ddwrt:NameChanged

I like using the ddwrt namespace functions, as they give you a lot of power in your DVWP’s XSL.  I just found an alternative approach to using the ddwrt:NameChanged function which may make more sense...

View Article



Peeking into the XML Result Set in a Web Part

Here’s a nice little trick to see what’s in the XML stream being returned in a Data View Web Part (DVWP), or any other Web Part where you can specify the XSL.  By replacing the <xsl:stylesheet>...

View Article

Image may be NSFW.
Clik here to view.

Showing Subtotals in a DVWP, Sorted by the Subtotals – Part 3

UltraGC is putting me through my DVWP paces with follow on questions on this topic, but I’m having fun figuring out each additional piece.  In parts one and two, I showed how to sum the values by a...

View Article

Image may be NSFW.
Clik here to view.

Summing Calculated Columns in DVWPs

Every blog post I’ve read says it can’t be done, but now I beg to differ!  Today I came up with a way to sum calculated columns in SharePoint Data View Web Parts (DVWPs).  It has been bugging me for a...

View Article

Displaying a Multi-Select Column "Nicely"

UPDATE 2010-08-26: I’ve added this template to the SPXSLT project on Codeplex. There’s a bit more explanation there. UPDATE 2010-04-27: Shalin Parmar pointed out in a comment below that I had  a bug in...

View Article


Date Arithmetic in SharePoint DVWPs

I posted last September about Date Calculations in a DVWP.  In that post, I pointed out Andy Lewis’ great post about how to do Filtering and Formatting with Date Values over at the Microsoft SharePoint...

View Article

Odd SharePoint Designer Custom Form Behavior

@workerthread tweeted this today: Really interested to hear if you can reproduce weird #SharePoint Designer custom form behaviour detailed here http://bit.ly/60Tko I ran through the steps Derek...

View Article

Image may be NSFW.
Clik here to view.

Unlocking the Mysteries of Data View Web Part XSL Tags – Part 1: Overview

Cross-posted from EndUserSharePoint.com… Data View Web Parts (DVWPs) are, to me, the most powerful feature in SharePoint. You’ve probably heard them called the Swiss Army Knife of SharePoint and...

View Article


Image may be NSFW.
Clik here to view.

Unlocking the Mysteries of Data View Web Part XSL Tags – Part 2 –

Cross-posted from EndUserSharePoint.com… <xsl:template> Think of a template as a subroutine. It’s a unit of XSL to which you pass control. A template in a Data View Web Part’s (DVWP’s) XSL is a...

View Article


Image may be NSFW.
Clik here to view.

Unlocking the Mysteries of Data View Web Part XSL Tags – Part 3 –

Cross-posted from EndUserSharePoint.com… <xsl:call-template> This is how you call a template which you’ve defined with <xsl-template>. In the last installment, I showed you what templates...

View Article

Image may be NSFW.
Clik here to view.

Unlocking the Mysteries of Data View Web Part XSL Tags – Part 4 –

Cross-posted from EndUserSharePoint.com… <xsl:with-param> You use this with <xsl:call-template> when you want to pass a value into a template, usually a value that varies. Once you’ve laid...

View Article

Image may be NSFW.
Clik here to view.

Unlocking the Mysteries of Data View Web Part XSL Tags – Part 5 –

Cross-posted from EndUserSharePoint.com… <xsl:param> A value you’ve passed into a template with <xsl:with-param>. You need to have an <xsl:param> at the top of the template for each...

View Article

Image may be NSFW.
Clik here to view.

Unlocking the Mysteries of Data View Web Part XSL Tags – Part 6 –

Cross-posted from EndUserSharePoint.com… <xsl:variable> A value you create for use within a template which is only defined within the scope of that template. Parameters and variables are used...

View Article


Image may be NSFW.
Clik here to view.

Unlocking the Mysteries of Data View Web Part XSL Tags – Part 8 –

Cross-posted from EndUserSharePoint.com… <xsl:sort> Used within an <xsl:for-each> to determine the sort order in which the nodeset (group of rows) are processed. <xsl:sort> allows you...

View Article

Image may be NSFW.
Clik here to view.

Unlocking the Mysteries of Data View Web Part XSL Tags – Part 9 –

Cross-posted from EndUserSharePoint.com… <xsl:if> A single conditional test. If the test is true, then the contained code is executed. <xsl:if> is one of the simple workhorses in the Data...

View Article


Image may be NSFW.
Clik here to view.

Unlocking the Mysteries of Data View Web Part XSL Tags – Part 10 –

Cross-posted from EndUserSharePoint.com… <xsl:choose> Like <xsl:if>, but with multiple possibilities, more like if-then-else. <xsl:when> Used within <xsl:choose> as a...

View Article

Image may be NSFW.
Clik here to view.

Unlocking the Mysteries of Data View Web Part XSL Tags – Part 11 –

 Cross-posted from EndUserSharePoint.com… <xsl:value-of> Outputs the value to which it evaluates, whether it be the value of a column, a variable, etc. <xsl:value-of> is sort of the...

View Article


Image may be NSFW.
Clik here to view.

Unlocking the Mysteries of Data View Web Part XSL Tags – Part 12 –...

Cross-posted from EndUserSharePoint.com… As I got into writing this “last” article in the series, I realized that between the things people have asked me over the course of the series and the things I...

View Article

Image may be NSFW.
Clik here to view.

Unlocking the Mysteries of Data View Web Part XSL Tags – Part 13 –...

Cross-posted from EndUserSharePoint.com… In the last article, I talked about teasing out the various parts of the values in Person or Group column values. To do this, I relied on the substring...

View Article

Image may be NSFW.
Clik here to view.

Unlocking the Mysteries of Data View Web Part XSL Tags – Part 14 –...

Cross-posted from EndUserSharePoint.com… If you’ve been following this series, you’ve seen me write about the ddwrt namespace functions multiple times.  They are extremely helpful functions that really...

View Article
Browsing all 52 articles
Browse latest View live




Latest Images